add: personal

This commit is contained in:
2025-07-13 17:24:50 +05:00
parent 821741a9f8
commit 481612925c
9 changed files with 222 additions and 7 deletions

View File

@ -17,6 +17,14 @@ class PowerRatio(enum.Enum):
ELECTRIC_GREATER = "ЭД > ДВС"
NA = "не применимо"
class Admin(Base):
__tablename__ = "admins"
id = Column(Integer, primary_key=True, index=True)
username = Column(String, unique=True, index=True)
hashed_password = Column(String)
is_active = Column(Boolean, default=True)
class Car(Base):
__tablename__ = "cars"