Initial commit

This commit is contained in:
2026-09-04 20:55:42 +03:00
commit 34d40fc219
52 changed files with 3967 additions and 0 deletions
View File
Binary file not shown.
Binary file not shown.
+16
View File
@@ -0,0 +1,16 @@
import enum
from sqlalchemy import Column, Integer, String, Boolean
from core.database import Base
class UserRole(str, enum.Enum):
admin = "admin"
cashier = "cashier"
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=UserRole.cashier, nullable=False)