Spaces:
Sleeping
Sleeping
Update app/models/user.py
Browse files- app/models/user.py +2 -1
app/models/user.py
CHANGED
|
@@ -9,4 +9,5 @@ class User(Base):
|
|
| 9 |
username = Column(String, unique=True, index=True, nullable=False)
|
| 10 |
hashed_password = Column(String, nullable=False)
|
| 11 |
is_admin = Column(Boolean, default=False)
|
| 12 |
-
|
|
|
|
|
|
| 9 |
username = Column(String, unique=True, index=True, nullable=False)
|
| 10 |
hashed_password = Column(String, nullable=False)
|
| 11 |
is_admin = Column(Boolean, default=False)
|
| 12 |
+
role = Column(String, default="user")
|
| 13 |
+
created_at = Column(DateTime, default=datetime.utcnow)
|