File size: 1,625 Bytes
ff72db3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# from sqlalchemy import Column, String, BigInteger, DateTime, ForeignKey
# from config.database import Base
# from sqlalchemy.dialects.mysql import TINYINT # MySQL TINYINT νμ
# class UserInfo(Base):
# __tablename__ = "USER_INFO"
# id = Column(String(36), primary_key=True, comment="ID")
# preferred_username = Column(String(50), nullable=True, comment="λ‘κ·ΈμΈμμ΄λ")
# mobile = Column(String(15), nullable=True, comment="λͺ¨λ°μΌ")
# business_cd = Column(String(8), nullable=True, comment="μμκΈ°κ΄μΌλ ¨λ²")
# role_seq = Column(BigInteger, ForeignKey("ROLE.SEQ"), nullable=True, comment="μν μΌλ ¨λ²νΈ")
# name = Column(String(255), nullable=True, comment="μ¬μ©μμ΄λ¦")
# email = Column(String(255), nullable=True, comment="μ΄λ©μΌ")
# profile = Column(String(255), nullable=True, comment="νλ‘ν")
# school_code = Column(String(50), nullable=True, comment="νκ΅μ½λ")
# grade = Column(TINYINT, nullable=True, comment="νλ
")
# class_name = Column(String(50), nullable=True, comment="νκΈ")
# student_no = Column(TINYINT, nullable=True, comment="νμλ²νΈ")
# created_at = Column(DateTime, nullable=False, comment="μμ±μΌ")
# creator_id = Column(String(36), nullable=True, comment="μμ±μμμ΄λ")
# creator_ip = Column(String(50), nullable=True, comment="μμ±μIP")
# updated_at = Column(DateTime, nullable=True, comment="μμ μΌ")
# updater_id = Column(String(36), nullable=True, comment="μμ μμμ΄λ")
# updater_ip = Column(String(50), nullable=True, comment="μμ μIP")
|