2022-11-01 01:56:57 +08:00
|
|
|
from sqlalchemy import Column, String, Boolean
|
2022-10-20 16:29:54 +08:00
|
|
|
|
2022-11-01 01:56:57 +08:00
|
|
|
from Utils.DataBase.SqlAlchemyUtils import Base
|
2022-10-20 16:29:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
class User(Base):
|
|
|
|
__tablename__ = "user"
|
|
|
|
|
2022-11-01 01:56:57 +08:00
|
|
|
id = Column(String(64), primary_key=True, index=True)
|
|
|
|
email = Column(String(64), unique=True, index=True)
|
2022-10-20 16:29:54 +08:00
|
|
|
passwd = Column(String(255))
|
2022-11-01 01:56:57 +08:00
|
|
|
name = Column(String(32))
|
|
|
|
role = Column(String(32))
|
|
|
|
depart = Column(String(64))
|
2022-10-20 16:29:54 +08:00
|
|
|
is_active = Column(Boolean, default=True)
|