Exemplo n.º 1
0
    def __init__(self):
        BaseModel.__init__(self)

        self.name = Column(STRING, null=False)
        self.skill_id = Column(STRING)      # formed by characters in A-Za-z0-9
        self.desc = Column(STRING)
        self.reg_tm = Column(DATETIME)
Exemplo n.º 2
0
    def __init__(self):
        BaseModel.__init__(self)

        self.name = Column(STRING, null=False)
        self.desc = Column(STRING)
        self.reg_tm = Column(DATETIME)
        self.admin = Column(STRING)         # 管理员的编号 horner_worker
Exemplo n.º 3
0
    def __init__(self):
        BaseModel.__init__(self)

        self.company_id = Column(STRING)
        self.name = Column(STRING, null=False, length=32)
        self.email = Column(STRING, null=False, length=128)
        self.reg_tm = Column(DATETIME)
        self.reg_ip = Column(STRING, null=False)
        self.pwd = Column(STRING, length=32)
        self.phone = Column(STRING)
Exemplo n.º 4
0
    def __init__(self):
        BaseModel.__init__(self)

        self.name = Column(STRING, null=False)
        self.desc = Column(STRING)
        self.reg_tm = Column(DATETIME)