Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617
  1. # PostgreSQL table model for users
  2. from sqlalchemy import Column, Integer, String, DateTime
  3. from db.base import Base
  4. class User(Base):
  5. __tablename__ = "users"
  6. Id = Column(Integer, primary_key=True, index=True)
  7. Name = Column(String, nullable=False)
  8. MiddleName = Column(String, nullable=True)
  9. LastName = Column(String, nullable=False)
  10. BirthDate = Column(DateTime, nullable=False)
  11. ContactNumber = Column(String, nullable=False)
  12. Email = Column(String, nullable=False)
  13. Role = Column(String, nullable=False)
  14. DrivingLicenseNumber = Column(String, nullable=True)
  15. HashedPassword = Column(String, nullable=False)