예제 #1
0
class FaTaskFlowHandleUser(db.Model):
    __tablename__ = 'fa_task_flow_handle_user'

    TASK_FLOW_ID = db.Column(db.ForeignKey('fa_task_flow.ID'), primary_key=True, nullable=False)
    HANDLE_USER_ID = db.Column(db.Integer, primary_key=True, nullable=False)

    fa_task_flow = db.relationship('FaTaskFlow', primaryjoin='FaTaskFlowHandleUser.TASK_FLOW_ID == FaTaskFlow.ID', backref='fa_task_flow_handle_users')
예제 #2
0
파일: model.py 프로젝트: Hanlen520/family
class FaLog(db.Model):
    __tablename__ = 'fa_log'

    ID = db.Column(db.Integer, primary_key=True)
    ADD_TIME = db.Column(db.DateTime, nullable=False)
    MODULE_NAME = db.Column(db.String(100), nullable=False)
    USER_ID = db.Column(db.Integer, nullable=False)
예제 #3
0
파일: model.py 프로젝트: Hanlen520/family
class FaFlowFlownode(db.Model):
    __tablename__ = 'fa_flow_flownode'

    ID = db.Column(db.Integer, primary_key=True)
    NAME = db.Column(db.String(100), nullable=False)
    HANDLE_URL = db.Column(db.String(200))
    SHOW_URL = db.Column(db.String(200))
예제 #4
0
파일: model.py 프로젝트: Hanlen520/family
class Sequence(db.Model):
    __tablename__ = 'sequence'

    seq_name = db.Column(db.String(50), primary_key=True)
    current_val = db.Column(db.Integer, nullable=False)
    increment_val = db.Column(db.Integer,
                              nullable=False,
                              server_default=db.FetchedValue())
예제 #5
0
파일: model.py 프로젝트: Hanlen520/family
class FaMessageType(db.Model):
    __tablename__ = 'fa_message_type'

    ID = db.Column(db.Integer, primary_key=True)
    NAME = db.Column(db.String(50))
    TABLE_NAME = db.Column(db.String(50))
    IS_USE = db.Column(db.Integer)
    REMARK = db.Column(db.String(500))
예제 #6
0
파일: model.py 프로젝트: Hanlen520/family
class FaOauth(db.Model):
    __tablename__ = 'fa_oauth'

    ID = db.Column(db.Integer, primary_key=True)
    NAME = db.Column(db.String(50))
    REG_URL = db.Column(db.String(500))
    LOGIN_URL = db.Column(db.String(500))
    REMARK = db.Column(db.String(500))
예제 #7
0
class FaScriptGroupList(db.Model):
    __tablename__ = 'fa_script_group_list'

    SCRIPT_ID = db.Column(db.Integer, primary_key=True, nullable=False)
    GROUP_ID = db.Column(db.ForeignKey('fa_script.ID'), primary_key=True, nullable=False)
    ORDER_INDEX = db.Column(db.Integer, nullable=False)

    fa_script = db.relationship('FaScript', primaryjoin='FaScriptGroupList.GROUP_ID == FaScript.ID', backref='fa_script_group_lists')
예제 #8
0
class FaElder(db.Model):
    __tablename__ = 'fa_elder'

    ID = db.Column(db.Integer, primary_key=True)
    FAMILY_ID = db.Column(db.ForeignKey('fa_family.ID'))
    NAME = db.Column(db.String(2), nullable=False)
    SORT = db.Column(db.Integer)

    fa_family = db.relationship('FaFamily', primaryjoin='FaElder.FAMILY_ID == FaFamily.ID', backref='fa_elders')
예제 #9
0
class FaBulletinLog(db.Model):
    __tablename__ = 'fa_bulletin_log'

    ID = db.Column(db.Integer, primary_key=True)
    BULLETIN_ID = db.Column(db.ForeignKey('fa_bulletin.ID'), nullable=False)
    USER_ID = db.Column(db.Integer, nullable=False)
    LOOK_TIME = db.Column(db.DateTime, nullable=False)

    fa_bulletin = db.relationship('FaBulletin', primaryjoin='FaBulletinLog.BULLETIN_ID == FaBulletin.ID', backref='fa_bulletin_logs')
예제 #10
0
class FaRoleQueryAuthority(db.Model):
    __tablename__ = 'fa_role_query_authority'

    ROLE_ID = db.Column(db.ForeignKey('fa_role.ID'), primary_key=True, nullable=False)
    QUERY_ID = db.Column(db.ForeignKey('fa_query.ID'), primary_key=True, nullable=False)
    NO_AUTHORITY = db.Column(db.String(200))

    fa_query = db.relationship('FaQuery', primaryjoin='FaRoleQueryAuthority.QUERY_ID == FaQuery.ID', backref='fa_role_query_authorities')
    fa_role = db.relationship('FaRole', primaryjoin='FaRoleQueryAuthority.ROLE_ID == FaRole.ID', backref='fa_role_query_authorities')
예제 #11
0
class FaRole(db.Model):
    __tablename__ = 'fa_role'

    ID = db.Column(db.Integer, primary_key=True)
    NAME = db.Column(db.String(80))
    REMARK = db.Column(db.String(255))
    TYPE = db.Column(db.Integer)

    fa_user = db.relationship('FaUser', secondary='fa_user_role', backref='fa_roles')
예제 #12
0
파일: model.py 프로젝트: Hanlen520/family
class FaFlowFlownodeFlow(db.Model):
    __tablename__ = 'fa_flow_flownode_flow'

    ID = db.Column(db.Integer, primary_key=True)
    FLOW_ID = db.Column(db.ForeignKey(u'fa_flow.ID'), nullable=False)
    FROM_FLOWNODE_ID = db.Column(db.ForeignKey(u'fa_flow_flownode.ID'),
                                 nullable=False)
    TO_FLOWNODE_ID = db.Column(db.Integer, nullable=False)
    HANDLE = db.Column(db.Numeric(1, 0), nullable=False)
    ASSIGNER = db.Column(db.Numeric(1, 0), nullable=False)
    STATUS = db.Column(db.String(20))
    REMARK = db.Column(db.String(20))
    EXPIRE_HOUR = db.Column(db.Integer, nullable=False)

    fa_flow = db.relationship(
        u'FaFlow',
        primaryjoin='FaFlowFlownodeFlow.FLOW_ID == FaFlow.ID',
        backref=u'fa_flow_flownode_flows')
    fa_flow_flownode = db.relationship(
        u'FaFlowFlownode',
        primaryjoin='FaFlowFlownodeFlow.FROM_FLOWNODE_ID == FaFlowFlownode.ID',
        backref=u'fa_flow_flownode_flows')
    fa_role = db.relationship(u'FaRole',
                              secondary=u'fa_flow_flownode_role',
                              backref=u'fa_flow_flownode_flows')
예제 #13
0
파일: model.py 프로젝트: Hanlen520/family
class FaConfig(db.Model):
    __tablename__ = 'fa_config'

    ID = db.Column(db.Integer, primary_key=True)
    TYPE = db.Column(db.String(10))
    CODE = db.Column(db.String(32), nullable=False)
    NAME = db.Column(db.String(50))
    VALUE = db.Column(db.String(300))
    REMARK = db.Column(db.String(500))
    REGION = db.Column(db.String(10), nullable=False)
    ADD_USER_ID = db.Column(db.Integer)
    ADD_TIEM = db.Column(db.DateTime)
예제 #14
0
class FaSmsSend(db.Model):
    __tablename__ = 'fa_sms_send'

    GUID = db.Column(db.String(32), primary_key=True)
    MESSAGE_ID = db.Column(db.Integer)
    PHONE_NO = db.Column(db.String(50), nullable=False)
    ADD_TIME = db.Column(db.DateTime)
    SEND_TIME = db.Column(db.DateTime)
    CONTENT = db.Column(db.String(500), nullable=False)
    STAUTS = db.Column(db.String(15))
    TRY_NUM = db.Column(db.Integer, nullable=False, server_default=db.FetchedValue())
예제 #15
0
class FaFile(db.Model):
    __tablename__ = 'fa_files'

    ID = db.Column(db.Integer, primary_key=True)
    NAME = db.Column(db.String(255), nullable=False)
    PATH = db.Column(db.String(200), nullable=False)
    USER_ID = db.Column(db.Integer)
    LENGTH = db.Column(db.Integer, nullable=False)
    UPLOAD_TIME = db.Column(db.DateTime)
    REMARK = db.Column(db.String(2000))
    URL = db.Column(db.String(254))
    FILE_TYPE = db.Column(db.String(50))

    fa_task_flow_handle = db.relationship('FaTaskFlowHandle', secondary='fa_task_flow_handle_files', backref='fa_files')
    fa_user = db.relationship('FaUser', secondary='fa_user_file', backref='fa_files')
예제 #16
0
class FaBulletinReview(db.Model):
    __tablename__ = 'fa_bulletin_review'

    ID = db.Column(db.Integer, primary_key=True)
    PARENT_ID = db.Column(db.ForeignKey('fa_bulletin_review.ID'))
    BULLETIN_ID = db.Column(db.ForeignKey('fa_bulletin.ID'), nullable=False)
    NAME = db.Column(db.String(50))
    CONTENT = db.Column(db.Text)
    USER_ID = db.Column(db.Integer, nullable=False)
    ADD_TIME = db.Column(db.DateTime, nullable=False)
    STATUS = db.Column(db.String(10), nullable=False)
    STATUS_TIME = db.Column(db.DateTime, nullable=False)

    fa_bulletin = db.relationship('FaBulletin', primaryjoin='FaBulletinReview.BULLETIN_ID == FaBulletin.ID', backref='fa_bulletin_reviews')
    parent = db.relationship('FaBulletinReview', remote_side=[ID], primaryjoin='FaBulletinReview.PARENT_ID == FaBulletinReview.ID', backref='fa_bulletin_reviews')
예제 #17
0
class FaFunction(db.Model):
    __tablename__ = 'fa_function'

    ID = db.Column(db.Integer, primary_key=True)
    REMARK = db.Column(db.String(100))
    FULL_NAME = db.Column(db.String(100))
    NAMESPACE = db.Column(db.String(100))
    CLASS_NAME = db.Column(db.String(100))
    METHOD_NAME = db.Column(db.String(100))
    DLL_NAME = db.Column(db.String(100))
    XML_NOTE = db.Column(db.String(254))

    fa_role = db.relationship('FaRole', secondary='fa_role_function', backref='fa_functions')
예제 #18
0
파일: model.py 프로젝트: Hanlen520/family
class FaExportLog(db.Model):
    __tablename__ = 'fa_export_log'

    ID = db.Column(db.Integer, primary_key=True)
    USER_ID = db.Column(db.Integer)
    LOGIN_NAME = db.Column(db.String(50))
    NAME = db.Column(db.String(50))
    SQL_CONTENT = db.Column(db.Text)
    EXPORT_TIME = db.Column(db.DateTime)
    REMARK = db.Column(db.String(100))
예제 #19
0
파일: model.py 프로젝트: Hanlen520/family
class FaLoginHistory(db.Model):
    __tablename__ = 'fa_login_history'

    ID = db.Column(db.Integer, primary_key=True)
    USER_ID = db.Column(db.Integer)
    LOGIN_TIME = db.Column(db.DateTime)
    LOGIN_HOST = db.Column(db.String(255))
    LOGOUT_TIME = db.Column(db.DateTime)
    LOGIN_HISTORY_TYPE = db.Column(db.Integer)
    MESSAGE = db.Column(db.String(255))
예제 #20
0
파일: model.py 프로젝트: Hanlen520/family
class FaUpdataLog(db.Model):
    __tablename__ = 'fa_updata_log'

    ID = db.Column(db.Integer, primary_key=True)
    CREATE_TIME = db.Column(db.DateTime)
    CREATE_USER_NAME = db.Column(db.String(50))
    CREATE_USER_ID = db.Column(db.Integer)
    OLD_CONTENT = db.Column(db.Text)
    NEW_CONTENT = db.Column(db.Text)
    TABLE_NAME = db.Column(db.String(50))
예제 #21
0
class FaDistrict(db.Model):
    __tablename__ = 'fa_district'

    ID = db.Column(db.Integer, primary_key=True)
    PARENT_ID = db.Column(db.ForeignKey('fa_district.ID'))
    NAME = db.Column(db.String(255), nullable=False)
    CODE = db.Column(db.String(50))
    IN_USE = db.Column(db.Numeric(1, 0), nullable=False)
    LEVEL_ID = db.Column(db.Integer, nullable=False)
    ID_PATH = db.Column(db.String(200))
    REGION = db.Column(db.String(10), nullable=False)

    parent = db.relationship('FaDistrict', remote_side=[ID], primaryjoin='FaDistrict.PARENT_ID == FaDistrict.ID', backref='fa_districts')
    fa_user = db.relationship('FaUser', secondary='fa_user_district', backref='fa_districts')
예제 #22
0
class FaUserMessage(db.Model):
    __tablename__ = 'fa_user_message'

    MESSAGE_ID = db.Column(db.ForeignKey('fa_message.ID'), primary_key=True, nullable=False)
    USER_ID = db.Column(db.Integer, primary_key=True, nullable=False)
    PHONE_NO = db.Column(db.String(20))
    STATUS = db.Column(db.String(10))
    STATUS_TIME = db.Column(db.DateTime, nullable=False)
    REPLY = db.Column(db.String(500))
    PUSH_TYPE = db.Column(db.String(10))

    fa_message = db.relationship('FaMessage', primaryjoin='FaUserMessage.MESSAGE_ID == FaMessage.ID', backref='fa_user_messages')
예제 #23
0
파일: model.py 프로젝트: Hanlen520/family
class FaAppVersion(db.Model):
    __tablename__ = 'fa_app_version'

    ID = db.Column(db.Integer, primary_key=True)
    IS_NEW = db.Column(db.Numeric(1, 0), nullable=False)
    TYPE = db.Column(db.String(20), nullable=False)
    REMARK = db.Column(db.String(1000))
    UPDATE_TIME = db.Column(db.DateTime)
    UPDATE_URL = db.Column(db.String(200))
예제 #24
0
파일: model.py 프로젝트: Hanlen520/family
class FaFlow(db.Model):
    __tablename__ = 'fa_flow'

    ID = db.Column(db.Integer, primary_key=True)
    NAME = db.Column(db.String(100), nullable=False)
    FLOW_TYPE = db.Column(db.String(20), nullable=False)
    REMARK = db.Column(db.String(100))
    X_Y = db.Column(db.String(500))
    REGION = db.Column(db.String(10))
예제 #25
0
class FaRoleConfig(db.Model):
    __tablename__ = 'fa_role_config'

    ID = db.Column(db.Integer, primary_key=True)
    ROLE_ID = db.Column(db.ForeignKey('fa_role.ID'), nullable=False)
    TYPE = db.Column(db.String(10))
    NAME = db.Column(db.String(50), nullable=False)
    VALUE = db.Column(db.String(300))
    REMARK = db.Column(db.String(500))

    fa_role = db.relationship('FaRole', primaryjoin='FaRoleConfig.ROLE_ID == FaRole.ID', backref='fa_role_configs')
예제 #26
0
class FaScriptTaskLog(db.Model):
    __tablename__ = 'fa_script_task_log'

    ID = db.Column(db.Integer, primary_key=True)
    SCRIPT_TASK_ID = db.Column(db.ForeignKey('fa_script_task.ID'), nullable=False)
    LOG_TIME = db.Column(db.DateTime, nullable=False)
    LOG_TYPE = db.Column(db.Numeric(1, 0), nullable=False, server_default=db.FetchedValue())
    MESSAGE = db.Column(db.Text)
    SQL_TEXT = db.Column(db.Text)

    fa_script_task = db.relationship('FaScriptTask', primaryjoin='FaScriptTaskLog.SCRIPT_TASK_ID == FaScriptTask.ID', backref='fa_script_task_logs')
예제 #27
0
class FaTaskFlowHandle(db.Model):
    __tablename__ = 'fa_task_flow_handle'

    ID = db.Column(db.Integer, primary_key=True)
    TASK_FLOW_ID = db.Column(db.ForeignKey('fa_task_flow.ID'), nullable=False)
    DEAL_USER_ID = db.Column(db.Integer, nullable=False)
    DEAL_USER_NAME = db.Column(db.String(50), nullable=False)
    DEAL_TIME = db.Column(db.DateTime, nullable=False)
    CONTENT = db.Column(db.String(2000), nullable=False)

    fa_task_flow = db.relationship('FaTaskFlow', primaryjoin='FaTaskFlowHandle.TASK_FLOW_ID == FaTaskFlow.ID', backref='fa_task_flow_handles')
예제 #28
0
class FaUserEvent(db.Model):
    __tablename__ = 'fa_user_event'

    ID = db.Column(db.Integer, primary_key=True)
    USER_ID = db.Column(db.ForeignKey('fa_user_info.ID'))
    NAME = db.Column(db.String(50))
    HAPPEN_TIME = db.Column(db.DateTime)
    CONTENT = db.Column(db.String(500))
    ADDRESS = db.Column(db.String(500))

    fa_user_info = db.relationship('FaUserInfo', primaryjoin='FaUserEvent.USER_ID == FaUserInfo.ID', backref='fa_user_events')
    fa_files = db.relationship('FaFile', secondary='fa_event_files', backref='fa_user_events')
예제 #29
0
파일: model.py 프로젝트: Hanlen520/family
class FaUserInfo(FaUser):
    __tablename__ = 'fa_user_info'

    ID = db.Column(db.ForeignKey(u'fa_user.ID'), primary_key=True)
    LEVEL_ID = db.Column(db.Integer)
    FAMILY_ID = db.Column(db.ForeignKey(u'fa_family.ID'))
    ELDER_ID = db.Column(db.ForeignKey(u'fa_elder.ID'))
    LEVEL_NAME = db.Column(db.String(2))
    FATHER_ID = db.Column(db.ForeignKey(u'fa_user_info.ID'))
    MOTHER_ID = db.Column(db.Integer)
    BIRTHDAY_TIME = db.Column(db.DateTime)
    BIRTHDAY_PLACE = db.Column(db.String(500))
    IS_LIVE = db.Column(db.Numeric(1, 0))
    DIED_TIME = db.Column(db.DateTime)
    DIED_PLACE = db.Column(db.String(500))
    SEX = db.Column(db.String(2))
    YEARS_TYPE = db.Column(db.String(10))
    CONSORT_ID = db.Column(db.Integer)
    STATUS = db.Column(db.String(10),
                       nullable=False,
                       server_default=db.FetchedValue())
    CREATE_USER_NAME = db.Column(db.String(50),
                                 nullable=False,
                                 server_default=db.FetchedValue())
    CREATE_USER_ID = db.Column(db.Integer,
                               nullable=False,
                               server_default=db.FetchedValue())
    UPDATE_TIME = db.Column(db.DateTime,
                            nullable=False,
                            server_default=db.FetchedValue())
    UPDATE_USER_NAME = db.Column(db.String(50),
                                 nullable=False,
                                 server_default=db.FetchedValue())
    UPDATE_USER_ID = db.Column(db.Integer,
                               nullable=False,
                               server_default=db.FetchedValue())

    fa_elder = db.relationship(u'FaElder',
                               primaryjoin='FaUserInfo.ELDER_ID == FaElder.ID',
                               backref=u'fa_user_infos')
    fa_family = db.relationship(
        u'FaFamily',
        primaryjoin='FaUserInfo.FAMILY_ID == FaFamily.ID',
        backref=u'fa_user_infos')
    parent = db.relationship(
        u'FaUserInfo',
        remote_side=[ID],
        primaryjoin='FaUserInfo.FATHER_ID == FaUserInfo.ID',
        backref=u'fa_user_infos')
예제 #30
0
파일: model.py 프로젝트: Hanlen520/family
class FaUser(db.Model):
    __tablename__ = 'fa_user'

    ID = db.Column(db.Integer, primary_key=True)
    NAME = db.Column(db.String(80))
    LOGIN_NAME = db.Column(db.String(20))
    ICON_FILES_ID = db.Column(db.Integer)
    DISTRICT_ID = db.Column(db.ForeignKey(u'fa_district.ID'), nullable=False)
    IS_LOCKED = db.Column(db.Numeric(1, 0))
    CREATE_TIME = db.Column(db.DateTime)
    LOGIN_COUNT = db.Column(db.Integer)
    LAST_LOGIN_TIME = db.Column(db.DateTime)
    LAST_LOGOUT_TIME = db.Column(db.DateTime)
    LAST_ACTIVE_TIME = db.Column(db.DateTime)
    REMARK = db.Column(db.String(2000))
    REGION = db.Column(db.String(10), nullable=False)

    fa_district = db.relationship(
        u'FaDistrict',
        primaryjoin='FaUser.DISTRICT_ID == FaDistrict.ID',
        backref=u'fa_users')
    fa_user_info = db.relationship(u'FaUserInfo',
                                   secondary=u'fa_user_friend',
                                   backref=u'fa_users',
                                   lazy="select")