create project

This commit is contained in:
2026-07-16 16:06:22 +03:00
parent 0a81898f29
commit a8a18abf30
10 changed files with 256 additions and 8 deletions
+13
View File
@@ -0,0 +1,13 @@
from sqlalchemy import Column, Integer, String, Boolean
from app.db import Base
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
email = Column(String, unique=True, index=True, nullable=False)
hashed_password = Column(String, nullable=False)
is_active = Column(Boolean(), default=True)
role = Column(String, default="user") # roles: "user", "admin"