23 lines
623 B
Python
23 lines
623 B
Python
from sqlalchemy.orm import declarative_base
|
|
from sqlalchemy import Column, String, Numeric, Integer
|
|
|
|
|
|
Base = declarative_base()
|
|
|
|
class Tokens(Base):
|
|
__tablename__ = "tokens"
|
|
tokens = Column(String(255), primary_key=True)
|
|
time = Column(String(255))
|
|
end_date = Column(String(255))
|
|
|
|
class Items(Base):
|
|
__tablename__ = "luggage"
|
|
clothes = Column(String(50), primary_key=True)
|
|
weight = Column(Numeric(20, 2))
|
|
pieces = Column(Integer)
|
|
|
|
class User(Base):
|
|
__tablename__ = "user"
|
|
username = Column(String(50), primary_key=True)
|
|
password = Column(String(255))
|
|
role = Column(String(50)) |