tamp_user_models.py 191 KB
Newer Older
赵杰's avatar
赵杰 committed
1 2 3 4 5 6
# coding: utf-8
from sqlalchemy import Column, DECIMAL, Date, DateTime, ForeignKeyConstraint, Index, LargeBinary, String, TIMESTAMP, Table, Text, text
from sqlalchemy.dialects.mysql import BIGINT, INTEGER, MEDIUMTEXT, SMALLINT, VARCHAR
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
7 8
Base = declarative_base()
metadata = Base.metadata
赵杰's avatar
赵杰 committed
9

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
10 11

class Account(Base):
赵杰's avatar
赵杰 committed
12 13
    __tablename__ = 'account'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
14 15 16 17 18 19 20
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ac_pay_pwd = Column(String(64), comment='支付密码')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
21 22


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
23
class AccountAmount(Base):
赵杰's avatar
赵杰 committed
24 25
    __tablename__ = 'account_amount'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
26 27 28 29 30 31 32
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    aa_balance = Column(BIGINT(12), comment='账户余额')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
33 34


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
35
class AccountAmountChangerecord(Base):
赵杰's avatar
赵杰 committed
36 37
    __tablename__ = 'account_amount_changerecord'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    aad_type = Column(String(3), comment='变动类型')
    aad_balance_before = Column(BIGINT(12), comment='变动前账户金额')
    aad_balance_after = Column(BIGINT(12), comment='变动后账户金额')
    aad_balance = Column(BIGINT(12), comment='变动金额')
    aad_reason = Column(String(512), comment='变动原因')
    aad_refid = Column(String(64), comment='关联记录ID')
    aad_ext = Column(String(64), comment='扩展字段')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class AccountBill(Base):
赵杰's avatar
赵杰 committed
54 55
    __tablename__ = 'account_bill'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ab_price = Column(BIGINT(12), comment='原价')
    ab_score_deduct = Column(BIGINT(12), comment='积分抵扣')
    ab_realpay = Column(BIGINT(12), comment='实付金额')
    ab_type = Column(String(3), comment='类型')
    ab_refid = Column(String(64), comment='关联记录ID')
    ab_desc = Column(String(256), comment='描述')
    ab_limitation = Column(String(3), comment='时效类型')
    ab_limitation_starttime = Column(DateTime, comment='时效开始时间')
    ab_limitation_endtime = Column(DateTime, comment='时效结束时间')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class AccountScore(Base):
赵杰's avatar
赵杰 committed
74 75
    __tablename__ = 'account_score'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
76 77 78 79 80 81 82
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    as_total_score = Column(BIGINT(10), comment='总积分')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
83 84


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
85
class AccountScoreChangerecord(Base):
赵杰's avatar
赵杰 committed
86 87
    __tablename__ = 'account_score_changerecord'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    asc_type = Column(String(3), comment='变动类型')
    asc_score_before = Column(BIGINT(10), comment='变动前总积分')
    asc_score_after = Column(BIGINT(10), comment='变动后总积分')
    asc_score = Column(BIGINT(10), comment='变动积分')
    asd_reason = Column(String(512), comment='变动原因')
    asc_refid = Column(String(64), comment='关联记录ID')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class Activity(Base):
赵杰's avatar
赵杰 committed
103 104
    __tablename__ = 'activity'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    at_img = Column(String(256), comment='活动宣传图')
    at_name = Column(String(64), comment='活动名称')
    at_type = Column(String(3), comment='活动类型')
    at_starttime = Column(DateTime, comment='报名开始日期')
    at_endtime = Column(DateTime, comment='报名结束日期')
    at_desc = Column(String(1024), comment='描述')
    at_detail_imgs = Column(Text, comment='活动图片')
    at_city = Column(String(128), comment='城市')
    at_adress = Column(String(1024), comment='地址')
    at_begintime = Column(DateTime, comment='活动开始时间')
    at_finishtime = Column(DateTime, comment='活动结束时间')
    at_fa_isconfirm = Column(String(3), comment='理财师是否可自行确认 0:否 1:是')
    org_team = Column(String(512), comment='组织架构')
    org_id = Column(String(64), comment='机构Id')
    ac_auditor = Column(String(512), comment='活动签到负责人')
    at_share_desc = Column(String(512), comment='活动分享文案')
    at_tem_type = Column(String(3), comment='活动模版类型')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    at_share_logo = Column(String(256), comment='活动分享logo')
    at_product = Column(String(64), comment='关联产品')
    at_genre = Column(String(32), comment='会务类型')
    at_detail_status = Column(INTEGER(3), server_default=text("'0'"), comment='活动详情')
赵杰's avatar
赵杰 committed
132
    at_detail_rich = Column(Text)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
133 134 135 136 137
    qrCode = Column(String(256), comment='二维码链接')
    codeInfo = Column(String(64), comment='二维码描述')
    page_url = Column(String(250), comment='页面url')
    bm_type = Column(INTEGER(1), comment='1:线上  2:线下  3 :线上和线下')
    task_notice = Column(INTEGER(3), nullable=False, server_default=text("'1'"), comment='1:发送任务通知 2:不发送任务通知')
赵杰's avatar
赵杰 committed
138 139


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
140
class ActivityBaoming(Base):
赵杰's avatar
赵杰 committed
141 142
    __tablename__ = 'activity_baoming'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ab_actid = Column(String(64), comment='活动ID')
    user_name = Column(String(32), comment='姓名')
    user_phone = Column(String(16), comment='手机号码')
    user_danwei = Column(String(32), comment='单位')
    user_zhiwei = Column(String(32), comment='职位')
    user_source = Column(String(32), comment='来源')
    ab_inviter = Column(String(64), comment='邀请人')
    ab_status = Column(String(3), comment='到场状态')
    ab_customer_status = Column(String(3), comment='客户状态:0:意向客户 1:潜力客户 2:成交客户')
    ab_member_id = Column(String(64), comment='会员号')
    ab_confirm_status = Column(String(3), comment='二次确认状态')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    ab_fission_userid = Column(String(64), comment='裂变人')
    ab_fission_path = Column(Text, comment='裂变路径')
    task_pro_send = Column(String(255), comment='任务发送通知')
赵杰's avatar
赵杰 committed
163
    org_id = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
164 165 166
    status = Column(INTEGER(11), comment='审核状态')
    is_online = Column(INTEGER(11), comment='参与方式')
    ext_data = Column(String(255), comment='扩展')
赵杰's avatar
赵杰 committed
167 168


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
169
class ActivityCustomerFollow(Base):
赵杰's avatar
赵杰 committed
170 171
    __tablename__ = 'activity_customer_follow'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
172 173 174 175 176 177 178 179 180 181 182
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    acf_actid = Column(String(64), comment='活动ID')
    acf_baoming_id = Column(String(64), comment='报名记录ID')
    acf_customer_status = Column(String(3), comment='客户状态')
    acf_beizhu = Column(String(256), comment='客户备注')
    acf_member_id = Column(String(64), comment='会员号')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
183 184


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
185
class AdditionalInfo(Base):
赵杰's avatar
赵杰 committed
186 187
    __tablename__ = 'additional_info'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
188 189 190 191 192 193 194 195 196 197
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ai_target_id = Column(String(64), comment='目标Id')
    ai_target_category = Column(INTEGER(1), comment='目标类型')
    ai_source_category = Column(INTEGER(1), comment='资源类别')
    ai_source_id = Column(String(1024), comment='资源Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
198 199


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
200
class AdsPosition(Base):
赵杰's avatar
赵杰 committed
201 202
    __tablename__ = 'ads_position'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ap_type = Column(INTEGER(3), comment='类型')
    ap_imgurl = Column(String(256), comment='图片地址')
    ap_link = Column(String(1024), comment='链接地址')
    ap_isshow = Column(INTEGER(3), comment='是否展示')
    create_time = Column(DateTime, comment='创建时间')
    rel_content = Column(String(200), comment='关联内容')
    rel_type = Column(INTEGER(1), comment='关联类型')
    rel_id = Column(String(64), comment='关联id')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    sort_priority = Column(INTEGER(11), server_default=text("'0'"), comment='排序')


class AiScanResult(Base):
赵杰's avatar
赵杰 committed
220 221
    __tablename__ = 'ai_scan_result'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    asr_taskid = Column(String(64), comment='任务ID')
    asr_faid = Column(String(64), comment='理财师ID')
    asr_userid = Column(String(64), comment='用户ID')
    asr_interest = Column(INTEGER(3), comment='兴趣值')
    sc_lastbrowsetime = Column(DateTime, comment='最后访问时间')
    sc_pro_browsenum = Column(BIGINT(11), comment='产品浏览次数')
    sc_article_browsenum = Column(BIGINT(11), comment='文章浏览次数')
    sc_mp_browsenum = Column(BIGINT(11), comment='名片浏览次数')
    sc_company_browsenum = Column(BIGINT(11), comment='公司资料浏览次数')
    sc_dayreport_browsenum = Column(BIGINT(11), comment='日报浏览次数')
    sc_total_browsenum = Column(BIGINT(11), comment='浏览次数合计')
    sc_pro_timelong = Column(BIGINT(11), comment='产品浏览总时长')
    sc_article_timelong = Column(BIGINT(11), comment='文章浏览总时长')
    sc_mp_timelong = Column(BIGINT(11), comment='名片浏览总时长')
    sc_company_timelong = Column(BIGINT(11), comment='公司资料浏览总时长')
    sc_dayreport_timelong = Column(BIGINT(11), comment='日报浏览总时长')
    sc_total_timelong = Column(BIGINT(11), comment='浏览时长合计')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class AiScanTask(Base):
赵杰's avatar
赵杰 committed
248 249
    __tablename__ = 'ai_scan_task'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ast_taskid = Column(String(64), comment='任务ID')
    ast_cycle = Column(String(3), comment='周期')
    ast_timelong = Column(BIGINT(8), comment='时长')
    ast_browsenum = Column(BIGINT(8), comment='浏览次数')
    ast_obj = Column(String(128), comment='扫描对象')
    ast_status = Column(String(16), comment='扫描结果状态')
    ast_totalnum = Column(INTEGER(11), comment='扫描结果总条数')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class AppMessage(Base):
赵杰's avatar
赵杰 committed
266 267
    __tablename__ = 'app_message'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
268 269 270 271 272 273
    id = Column(String(64), primary_key=True, comment='唯一主键')
    type = Column(INTEGER(5), comment='类型')
    sub_type = Column(INTEGER(5), comment='子类型')
    content = Column(String(1024), comment='内容')
    fa_id = Column(String(64), comment='理财师ID')
    read_status = Column(INTEGER(3), comment='阅读状态')
赵杰's avatar
赵杰 committed
274
    remind_userid = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
275 276 277 278 279 280 281
    ref_id = Column(String(64), comment='关联ID')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
282 283


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
284
class AppVersion(Base):
赵杰's avatar
赵杰 committed
285
    __tablename__ = 'app_version'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
286
    __table_args__ = {'comment': 'App版本信息'}
赵杰's avatar
赵杰 committed
287 288

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
289 290 291 292 293 294 295 296 297 298 299 300
    proname = Column(String(64), nullable=False, comment='产品')
    pt = Column(String(16), nullable=False, comment='平台 ios | android')
    release_channel = Column(String(64), comment='渠道')
    version_num = Column(String(64), nullable=False, comment='发布版本号')
    build_num = Column(String(16), nullable=False, comment='打包版本号')
    down_mode = Column(INTEGER(3), comment='下载方式 0: 应用市场 1:官网')
    down_url = Column(String(512), comment='下载地址')
    up_desc = Column(String(1024), comment='升级说明')
    alert_flag = Column(String(64), comment='弹窗标识')
    min_flag = Column(String(64), comment='最低可用版本')
    release_status = Column(INTEGER(3), comment='发布状态 0:未发布 1:已发布')
    release_time = Column(DateTime, comment='发布时间')
赵杰's avatar
赵杰 committed
301 302 303 304 305 306 307
    create_time = Column(DateTime)
    create_by = Column(String(64))
    update_time = Column(DateTime)
    update_by = Column(String(64))
    delete_tag = Column(INTEGER(3), nullable=False)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
308
class ApplicationTemplateQuestion(Base):
赵杰's avatar
赵杰 committed
309 310
    __tablename__ = 'application_template_question'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
311 312 313 314 315 316 317 318 319 320 321
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    q_type = Column(String(3), comment='题目类型')
    q_title = Column(String(512), comment='题干')
    q_option = Column(String(1024), comment='选项')
    q_required = Column(INTEGER(3), comment='是否必填项')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    q_choice = Column(INTEGER(3), comment='是否理财师必填 0: 理财师须填写 1: 非理财师填写 2: 所有人要填写')
赵杰's avatar
赵杰 committed
322 323


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
324
class ArLabel(Base):
赵杰's avatar
赵杰 committed
325 326
    __tablename__ = 'ar_labels'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
327 328 329 330 331 332 333 334
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ut_tem = Column(String(64), comment='标签名称')
    org_id = Column(String(64), comment='所属机构')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
335 336


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
337
class Article(Base):
赵杰's avatar
赵杰 committed
338 339
    __tablename__ = 'article'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ar_title = Column(String(128), comment='标题')
    ar_abstract = Column(String(1024), comment='摘要')
    ar_review_headurl = Column(String(256), comment='点评人头像')
    ar_review = Column(Text, comment='点评')
    ar_thumbnail = Column(String(256), comment='缩略图')
    ar_backgroundimg = Column(String(256), comment='大图')
    ar_showtype = Column(String(3), comment='展示图类型')
    ar_type = Column(String(64), comment='类型')
    ar_subject = Column(String(64), comment='主题')
    ar_column = Column(String(64), comment='专栏')
    ar_label = Column(String(128), comment='标签')
    ar_author = Column(String(32), comment='文章作者')
    ar_source = Column(String(32), comment='文章来源')
    ar_crawler_source = Column(String(32), comment='抓取来源')
    ar_crawler_url = Column(String(3000), comment='抓取来源Url')
    ar_content = Column(MEDIUMTEXT, comment='内容')
    ar_releasetime = Column(DateTime, comment='发布时间')
    ar_hot = Column(String(3), server_default=text("'0'"), comment='推荐标识')
    ar_status = Column(INTEGER(3), comment='状态')
    ar_praise_basenum = Column(BIGINT(20), comment='点赞虚拟数')
    ar_praise_actualnum = Column(BIGINT(20), comment='点赞真实数')
    ar_collect_basenum = Column(BIGINT(20), comment='收藏虚拟数')
    ar_collect_actualnum = Column(BIGINT(20), comment='收藏真实数')
    ar_read_basenum = Column(BIGINT(9), comment='虚拟阅读')
    ar_read_actualnum = Column(BIGINT(9), comment='真实阅读数')
    ar_settop_time = Column(DateTime, comment='置顶时间')
    ar_settop_expiry_date = Column(DateTime, comment='置顶有效期')
    ar_settop_state = Column(String(3), comment='是否置顶')
    ar_source_type = Column(String(3), comment='文章来源类型 0:后台添加 1:系统抓取 2:app用户微信链接抓取')
    ar_fee_type = Column(String(3), comment='收费类型 0:免费 1:收费')
    ar_vip_price = Column(BIGINT(12), comment='vip会员价格')
    ar_common_price = Column(BIGINT(12), comment='普通会员价格')
    ar_crawlarticletime = Column(DateTime, comment='抓取文章的原发布时间')
    ar_audio = Column(VARCHAR(256), comment='音频')
    ar_audio_length = Column(INTEGER(11), comment='音频时长')
    ar_review_by = Column(String(128), comment='审核人')
    ar_review_time = Column(DateTime, comment='审核时间')
    ar_submit_by = Column(String(128), comment='提交发布人')
    ar_push_labels = Column(Text, comment='推送标签')
    ar_pt = Column(String(128), comment='平台')
    ar_partne_planid = Column(String(64), comment='对外合作方案ID')
赵杰's avatar
赵杰 committed
382
    ar_plan_type = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
383 384 385 386 387 388 389 390 391 392 393 394 395 396
    ar_tag = Column(String(2048), comment='文章标签')
    share_msg = Column(String(2048), comment='分享信息')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    ar_solt_by = Column(String(64), comment='下架人')
    ar_solt_time = Column(DateTime, comment='下架时间')
    ar_soltout_time = Column(DateTime, comment='预下架时间')
    ar_product = Column(String(64), comment='关联产品')


class ArticlePushLabel(Base):
赵杰's avatar
赵杰 committed
397 398
    __tablename__ = 'article_push_label'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
399 400 401 402 403 404 405 406
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    label_name = Column(String(128), comment='名称')
    label_sort = Column(INTEGER(5), comment='排序')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
407 408


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
409
class Auth(Base):
赵杰's avatar
赵杰 committed
410
    __tablename__ = 'auth'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
411
    __table_args__ = {'comment': '权限定义表'}
赵杰's avatar
赵杰 committed
412 413

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
414 415 416 417 418 419 420
    ur_code = Column(String(16), nullable=False, unique=True, comment='权限唯一编码')
    ur_coll = Column(String(64), nullable=False, comment='角色是集合,数据权限是描述')
    ur_desc = Column(String(255), comment='权限描述')
    ur_name = Column(String(128), nullable=False, comment='用户角色描述(后台展示用)')
    ur_action = Column(String(64), nullable=False, comment='不满足当前权限要执行的动作')
    ur_action_desc = Column(String(128), nullable=False, comment='动作描述')
    ur_type = Column(INTEGER(3), nullable=False, comment='角色类型 0:功能角色 1:数据角色')
赵杰's avatar
赵杰 committed
421 422 423 424 425
    create_by = Column(String(64), nullable=False)
    create_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP"))
    update_by = Column(String(64))
    update_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"))
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
426
    priority = Column(INTEGER(11), nullable=False, server_default=text("'0'"), comment='优先级')
赵杰's avatar
赵杰 committed
427 428


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
429
class AuthBusinessRel(Base):
赵杰's avatar
赵杰 committed
430
    __tablename__ = 'auth_business_rel'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
431
    __table_args__ = {'comment': '权限业务关系表'}
赵杰's avatar
赵杰 committed
432 433

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
434 435 436 437
    ua_type = Column(String(16), nullable=False, comment='权限类型')
    ua_roles = Column(String(64), nullable=False, comment='权限(多选,eg:R1&S1)')
    ua_source_id = Column(String(64), nullable=False, comment='资源ID')
    ua_desc = Column(String(255), nullable=False, comment='描述')
赵杰's avatar
赵杰 committed
438 439 440 441 442 443 444
    create_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP"))
    update_by = Column(String(64))
    update_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"))
    delete_tag = Column(INTEGER(3), nullable=False, server_default=text("'0'"))
    create_by = Column(String(64))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
445
class AuthInformation(Base):
赵杰's avatar
赵杰 committed
446 447
    __tablename__ = 'auth_information'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='主键')
    user_name = Column(String(64), comment='姓名')
    user_phone = Column(String(64), comment='手机号')
    user_zhiwei = Column(String(64), comment='职位')
    user_email = Column(String(64), comment='邮箱')
    staff_no = Column(String(64), comment='工号')
    user_info_id = Column(String(64), comment='用户Id')
    org_id = Column(String(64), comment='机构Id')
    user_teamid = Column(String(64), comment='团队ID')
    status = Column(INTEGER(128), comment='状态')
    reviewer = Column(String(64), comment='审核人')
    review_time = Column(DateTime, comment='审核时间')
    user_role = Column(String(3), comment='角色')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class AuthTask(Base):
赵杰's avatar
赵杰 committed
469
    __tablename__ = 'auth_task'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486
    __table_args__ = {'comment': '权限任务表'}

    id = Column(String(64), primary_key=True, comment='主键')
    auth_code = Column(String(16), nullable=False, comment='数据权限code')
    task_code = Column(String(16), nullable=False, comment='任务编号')
    task_param = Column(String(16), nullable=False, comment='任务数值')
    add_auth_code = Column(String(16), nullable=False, comment='添加的权限')
    start_time = Column(DateTime, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"), comment='开始时间')
    end_time = Column(DateTime, server_default=text("'0000-00-00 00:00:00'"), comment='结束时间')
    create_by = Column(String(64), comment='创建人')
    create_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP"), comment='创建时间')
    update_by = Column(String(64), comment='修改人')
    update_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"), comment='修改时间')
    delete_tag = Column(INTEGER(3), nullable=False, server_default=text("'0'"), comment='删除标识 0:否 1:是')


class Banner(Base):
赵杰's avatar
赵杰 committed
487 488
    __tablename__ = 'banner'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
489 490 491 492 493 494 495 496 497 498
    id = Column(String(64), primary_key=True, comment='唯一主键')
    type = Column(INTEGER(5), comment='类型')
    img_url = Column(String(128), comment='图片地址')
    ref_id = Column(String(64), comment='关联ID')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
499 500


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
501
class CompositeIndexLog(Base):
赵杰's avatar
赵杰 committed
502 503
    __tablename__ = 'composite_index_log'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    currentdate = Column(Date, comment='当前日期')
    indexcode = Column(String(80), comment='指数代码')
    indexname = Column(String(80), comment='指数名')
    indextype = Column(String(80), comment='指数类型(1国内,2全球)')
    indexendprice = Column(String(80), comment='指数值')
    indexchangeprice = Column(String(80), comment='涨跌额')
    indexchangepricerate = Column(String(80), comment='涨跌幅')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class ConstantDatum(Base):
赵杰's avatar
赵杰 committed
520 521
    __tablename__ = 'constant_data'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
522 523 524 525 526 527 528 529 530 531
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    cd_type = Column(String(32), comment='类型')
    cd_value = Column(String(256), comment='赋值')
    cd_desc = Column(String(256), comment='描述')
    org_id = Column(String(64), comment='所属机构')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
532 533


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
534
class CooperateCustomer(Base):
赵杰's avatar
赵杰 committed
535 536
    __tablename__ = 'cooperate_customer'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
537 538
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    cc_customer_id = Column(String(64), comment='客户id')
赵杰's avatar
赵杰 committed
539 540
    cc_customer_phone = Column(String(16))
    cc_customer_name = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
541 542 543 544 545 546 547
    cc_partner_teamid = Column(String(64), comment='合作伙伴所在团队')
    cc_partnerid = Column(String(64), comment='合作伙伴ID')
    manager_id = Column(String(64), comment='外拓经理Id')
    cc_planid = Column(String(64), comment='使用方案')
    cc_process_status = Column(String(32), comment='进度状态')
    cc_userrecord_id = Column(String(64), comment='用户行为记录ID')
    cc_userlinks = Column(Text, comment='用户链路')
赵杰's avatar
赵杰 committed
548
    cc_articleid = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
549 550 551 552 553 554 555 556 557 558 559 560
    org_id = Column(String(64), comment='机构Id')
    cc_type = Column(String(3), comment='类型 0:异业合作 1:直销活动')
    ext = Column(String(5120), comment='扩展信息')
    share_status = Column(String(3), comment='分享状态 0:未分享 1:已分享')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class CooperateCustomerProces(Base):
赵杰's avatar
赵杰 committed
561 562
    __tablename__ = 'cooperate_customer_process'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    cc_ccid = Column(String(64), comment='引流方案记录ID')
    ccp_process_status = Column(String(32), comment='目标阶段')
    ccp_comm = Column(BIGINT(8), comment='佣金')
    ccp_beizhu = Column(String(256), comment='备注')
    ccp_planid = Column(String(64), comment='方案ID')
    ccp_teamid = Column(String(64), comment='合作引流团队')
    cc_partnerid = Column(String(64), comment='合作伙伴ID')
    manager_id = Column(String(64), comment='外拓经理Id')
    cc_customerid = Column(String(64), comment='客户ID')
    cc_imgurls = Column(String(256), comment='附件图片')
    org_id = Column(String(64), comment='机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class CooperateExistingCustomer(Base):
赵杰's avatar
赵杰 committed
583 584
    __tablename__ = 'cooperate_existing_customer'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
585 586 587 588 589 590 591 592 593 594 595
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    plan_id = Column(String(64), comment='方案ID')
    customer_name = Column(String(64), comment='客户姓名')
    customer_mobilephone = Column(String(20), comment='客户手机号')
    activated = Column(INTEGER(1), comment='是否激活')
    org_id = Column(String(64), comment='机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
596 597


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
598
class CooperatePartner(Base):
赵杰's avatar
赵杰 committed
599 600
    __tablename__ = 'cooperate_partner'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
601
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
赵杰's avatar
赵杰 committed
602
    cp_openid = Column(String(64), comment='openid')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617
    cp_name = Column(String(64), comment='姓名')
    cp_phone = Column(String(64), comment='手机号')
    cp_userid = Column(String(64), comment='合作企业员工ID')
    cp_teamid = Column(String(64), comment='所在合作团队')
    cp_status = Column(String(3), comment='合作状态')
    cp_beizhu = Column(String(256), comment='备注')
    org_id = Column(String(64), comment='合作机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class CooperatePlan(Base):
赵杰's avatar
赵杰 committed
618 619
    __tablename__ = 'cooperate_plan'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    plan_name = Column(String(64), comment='方案名称')
    plan_status = Column(String(3), comment='方案状态')
    plan_coustomer_target = Column(String(1024), comment='客户目标')
    plan_detail = Column(String(1024), comment='方案详情')
    org_id = Column(String(64), comment='机构Id')
    plan_type = Column(String(3), comment='类型 0:异业合作 1:直销活动')
    validation_switch = Column(INTEGER(1), comment='是否开启手机号验证')
    share_switch = Column(INTEGER(1), comment='分享开关')
    share_articleid = Column(String(64), comment='分享标题')
    ext = Column(String(5120), comment='扩展信息')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class CooperateTeam(Base):
赵杰's avatar
赵杰 committed
639 640
    __tablename__ = 'cooperate_team'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
641 642 643 644 645 646 647 648 649
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ct_name = Column(String(64), comment='团队名称')
    ct_controteam = Column(String(3), comment='是否允许企业员工管理团队')
    org_id = Column(String(64), comment='机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
650 651


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
652
class CrawlerConfigure(Base):
赵杰's avatar
赵杰 committed
653 654
    __tablename__ = 'crawler_configure'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
655 656 657 658 659 660 661 662 663 664 665 666
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    weburlorwechatsubs = Column(String(256), comment='爬取的网址或公众号名称')
    wechatuid = Column(String(64), comment='微信公众号uid')
    wxcrawletype = Column(String(3), comment='微信爬取类型')
    crawlertype = Column(String(8), comment='抓取类别')
    contenttype = Column(String(8), comment='内容分类')
    crawlersource = Column(String(128), comment='抓取来源|网站')
    regex_list = Column(String(1024), comment='正则匹配')
    css_selector_list = Column(String(1024), comment='页面元素提取集合')
    task_time = Column(String(128), comment='定时抓取时间')
    personal = Column(INTEGER(1), comment='私有的')
    wechat_category = Column(String(1024), comment='微信公众号分类')
赵杰's avatar
赵杰 committed
667
    wechat_imgurl = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
668 669 670 671 672 673
    org_id = Column(String(64), comment='机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
674 675 676
    wechat_desc = Column(String(1024))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
677
class CrawlerLog(Base):
赵杰's avatar
赵杰 committed
678 679
    __tablename__ = 'crawler_log'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
680 681 682 683 684
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    crawler_wxname = Column(String(128), comment='公众号|网站')
    crawler_status = Column(String(255), comment='抓取状态')
    crawler_message = Column(String(255), comment='抓取结果')
    crawler_date = Column(DateTime, comment='抓取时间')
赵杰's avatar
赵杰 committed
685 686


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
687
class CsFileRecord(Base):
赵杰's avatar
赵杰 committed
688 689 690 691 692
    __tablename__ = 'cs_file_record'
    __table_args__ = (
        Index('idx_logical_path_file_type', 'logical_path', 'file_type'),
    )

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713
    guid = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    original_name = Column(String(128), comment='文件原始名称')
    original_url = Column(String(256), comment='文件原链接')
    file_suffix = Column(String(128), comment='文件后缀名')
    file_type = Column(String(128), comment='文件类型')
    logical_name = Column(String(128), comment='文件逻辑名')
    logical_path = Column(String(256), comment='文件存放路径')
    refid = Column(Text, comment='关联数据ID')
    file_status = Column(INTEGER(128), comment='文件状态')
    ext1 = Column(String(128), comment='扩展字段1')
    ext2 = Column(String(128), comment='扩展字段2')
    ext3 = Column(String(128), comment='扩展字段3')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    ext4 = Column(String(64), comment='视频/音频时长')


class CurriculumChapter(Base):
赵杰's avatar
赵杰 committed
714 715
    __tablename__ = 'curriculum_chapter'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    cc_id = Column(String(32), comment='所属课程')
    cc_title = Column(String(128), comment='章节标题')
    cc_firstcatalog_id = Column(String(64), comment='所属一级目录ID')
    cc_timelength = Column(INTEGER(128), comment='时长')
    cc_content = Column(MEDIUMTEXT, comment='章节文稿内容')
    cc_audio = Column(String(128), comment='章节音频')
    cc_buy_basenum = Column(BIGINT(8), comment='虚拟购买数')
    cc_buy_actualnum = Column(BIGINT(8), comment='实际购买数')
    cc_collect_basenum = Column(BIGINT(8), comment='虚拟收藏数')
    cc_collect_actualnum = Column(BIGINT(8), comment='实际收藏数')
    cc_praise_basenum = Column(BIGINT(8), comment='虚拟点赞数')
    cc_praise_actualnum = Column(BIGINT(8), comment='实际点赞数')
    cc_fee_type = Column(String(3), comment='收费类型')
    cc_status = Column(String(3), comment='状态')
    cc_release_time = Column(DateTime, comment='上架时间')
    uptime = Column(DateTime, comment='定时上架时间')
    org_id = Column(String(64), comment='机构ID')
    cc_territory = Column(String(64), comment='擅长领域')
    upload_type = Column(String(3), comment='上传文件类型')
    createby = Column(String(64), comment='创建人')
    createtime = Column(DateTime, comment='创建时间')
    updateby = Column(String(64), comment='修改人')
    updatetime = Column(DateTime, comment='修改时间')
    deletetag = Column(String(3), comment='删除标识')
    datum_chap = Column(String(128), comment='章节资料')
    cc_teaid = Column(String(64), comment='讲师ID')
赵杰's avatar
赵杰 committed
743
    cc_desc = Column(String(1024))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
744 745 746 747 748 749 750 751 752 753 754 755 756
    ci_teaid = Column(String(64), comment='讲师Id')
    upload_size = Column(String(128), comment='上传文件大小')
    cc_sort = Column(INTEGER(5), comment='章节排序')
    cc_label = Column(String(165), comment='课节标签')
    c_res_id = Column(String(64), index=True, comment='课程id')
    is_recommend = Column(INTEGER(1), comment='是否推荐')
    recommend_reason = Column(String(100), comment='推荐理由')
    recommend_cover = Column(String(128), comment='推荐封面')
    read_num = Column(INTEGER(11), server_default=text("'0'"), comment='阅读数')
    read_base_num = Column(INTEGER(11), server_default=text("'0'"), comment='阅读基数')


class CurriculumChapterFirstcatalog(Base):
赵杰's avatar
赵杰 committed
757 758
    __tablename__ = 'curriculum_chapter_firstcatalog'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
759 760 761 762 763 764 765 766 767 768 769
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ccf_id = Column(String(32), comment='所属课程')
    ccf_title = Column(String(128), comment='标题')
    ccf_status = Column(String(3), comment='状态')
    ccf_release_time = Column(DateTime, comment='上架时间')
    org_id = Column(String(64), comment='机构ID')
    createby = Column(String(64), comment='创建人')
    createtime = Column(DateTime, comment='创建时间')
    updateby = Column(String(64), comment='修改人')
    updatetime = Column(DateTime, comment='修改时间')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
770 771


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
772
class CurriculumColumn(Base):
赵杰's avatar
赵杰 committed
773
    __tablename__ = 'curriculum_column'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793
    __table_args__ = {'comment': '栏目表'}

    id = Column(String(64), primary_key=True, comment='主键id')
    code = Column(String(64), comment='栏目code')
    title = Column(String(15), nullable=False, comment='栏目标题')
    info = Column(String(500), comment='简介')
    content = Column(MEDIUMTEXT, comment='文稿内容')
    cover = Column(String(100), nullable=False, comment='封面')
    level = Column(INTEGER(1), nullable=False, index=True, comment='目录等级 1:一级 2:二级')
    parent_id = Column(String(64), nullable=False, comment='上级栏目')
    status = Column(INTEGER(1), nullable=False, comment='状态')
    sort = Column(INTEGER(11), nullable=False, server_default=text("'0'"), comment='排序')
    module_id = Column(String(64), nullable=False, comment='模块id   nav:导航  selected:精选 live:直播  curriculum:课程')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
    create_by = Column(String(64), nullable=False, comment='创建人')
    update_time = Column(DateTime, nullable=False, comment='修改时间')
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否删除')


class CurriculumColumnRel(Base):
赵杰's avatar
赵杰 committed
794 795 796
    __tablename__ = 'curriculum_column_rel'
    __table_args__ = (
        Index('idx_column_rel', 'curriculum_column_id', 'rel_id', unique=True),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
797
        {'comment': '栏目关联表'}
赵杰's avatar
赵杰 committed
798 799
    )

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
800 801 802 803 804 805 806 807
    id = Column(String(64), primary_key=True, comment='主键id')
    curriculum_column_id = Column(String(64), nullable=False, comment='栏目id')
    rel_id = Column(String(64), nullable=False, comment='关联对象id')
    rel_type = Column(INTEGER(1), nullable=False, comment='关联类型  1:栏目  3:直播 4:视频  5 音频')
    sort = Column(INTEGER(11), nullable=False, server_default=text("'0'"), comment='排序')
    status = Column(INTEGER(1), server_default=text("'1'"), comment='状态')
    status_update_time = Column(DateTime, comment='状态变更时间')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
赵杰's avatar
赵杰 committed
808 809


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
810
class CurriculumInfo(Base):
赵杰's avatar
赵杰 committed
811 812 813
    __tablename__ = 'curriculum_info'
    __table_args__ = {'comment': 'introduce_img'}

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
814 815 816 817 818 819 820
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ci_title = Column(String(128), comment='课程标题')
    ci_subtitle = Column(String(128), comment='课程副标题')
    ci_briefintro = Column(MEDIUMTEXT, comment='课程简介')
    ci_label = Column(String(500), comment='课程标签')
    ci_cover = Column(String(128), comment='封面')
    ci_bakimg = Column(String(128), comment='详情背景')
赵杰's avatar
赵杰 committed
821
    ci_teaid = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841
    ci_author = Column(String(32), comment='作者')
    ci_authorheadurl = Column(String(128), comment='作者头像')
    ci_author_position = Column(String(128), comment='作者职位')
    ci_status = Column(String(3), comment='状态')
    ci_buy_basenum = Column(BIGINT(8), comment='虚拟购买数')
    ci_buy_actualnum = Column(BIGINT(8), comment='实际购买数')
    ci_collect_basenum = Column(BIGINT(8), comment='虚拟收藏数')
    ci_collect_actualnum = Column(BIGINT(8), comment='实际收藏数')
    cc_read_basenum = Column(BIGINT(8), comment='虚拟阅读数')
    cc_read_actualnum = Column(BIGINT(8), comment='实际阅读数')
    ci_uptime = Column(DateTime, comment='上架时间')
    ci_istop = Column(String(3), comment='是否置顶')
    ci_top_date = Column(DateTime, comment='置顶时间')
    ci_fee_type = Column(String(3), comment='收费类型')
    ci_flag = Column(String(3), comment='章节标识')
    ci_module = Column(String(3), comment='所属模块')
    ci_total_chapter = Column(INTEGER(5), comment='总章节')
    deletetag = Column(String(3), comment='删除标识')
    ci_catalog_type = Column(String(3), comment='目录模式')
    ci_chapter_updatetime = Column(DateTime, comment='章节最近更新时间')
赵杰's avatar
赵杰 committed
842
    ci_smail_cover = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
843 844 845 846 847 848 849 850 851 852 853
    org_id = Column(String(64), comment='机构ID')
    createby = Column(String(64), comment='创建人')
    createtime = Column(DateTime, comment='创建时间')
    updateby = Column(String(64), comment='修改人')
    updatetime = Column(DateTime, comment='修改时间')
    ci_type = Column(String(64), comment='类型')
    ci_territory = Column(String(64), comment='擅长领域')
    ci_isrecommend = Column(INTEGER(5), comment='推荐标识')
    ci_isrecommend_time = Column(DateTime, comment='推荐时间')
    ci_reason = Column(String(256), comment='入选理由')
    ci_subject = Column(String(64), comment='专题ID')
赵杰's avatar
赵杰 committed
854 855 856 857 858 859 860
    share_title = Column(String(128))
    share_pic = Column(String(256))
    share_desc = Column(String(256))
    ci_courseware = Column(Text)
    ci_fuli = Column(Text)
    ci_qrcode = Column(String(256))
    ci_canlisten_chapternum = Column(INTEGER(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
861 862 863 864 865 866 867
    ci_teacher_info = Column(String(100), comment='老师介绍')
    ci_operators_reason = Column(String(500), comment='运营推荐语')
    ci_introduce_code = Column(String(50), comment='群设置/推荐码')
    ci_open_type = Column(INTEGER(1), comment='开放类型0 :任何人参与 1:探普会员 2 注册用户  3 密码')
    ci_open_pwd = Column(String(20), comment='开放密码')
    introduce_img = Column(String(128), comment='推荐课程图片')
    sort_priority = Column(INTEGER(11), server_default=text("'0'"), comment='排序')
赵杰's avatar
赵杰 committed
868 869


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
870
class CurriculumInquiryOrder(Base):
赵杰's avatar
赵杰 committed
871 872
    __tablename__ = 'curriculum_inquiry_order'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    of_ordernum = Column(String(64), comment='订单编号')
    ci_curid = Column(String(64), comment='课程ID')
    ci_uname = Column(String(64), comment='姓名')
    ci_phone = Column(String(64), comment='手机')
    ci_desc = Column(String(64), comment='问题描述')
    ci_fileurls = Column(String(4096), comment='附件')
    of_amount = Column(DECIMAL(5, 2), comment='订单金额')
    ci_status = Column(String(3), comment='订单状态')
    pay_status = Column(String(3), comment='支付状态')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class CurriculumOften(Base):
赵杰's avatar
赵杰 committed
891 892
    __tablename__ = 'curriculum_often'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
893 894 895 896 897 898 899 900
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    title = Column(String(64), comment='课程名称')
    often_time = Column(DateTime, comment='常听时间')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
901 902


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
903
class CurriculumPackage(Base):
赵杰's avatar
赵杰 committed
904
    __tablename__ = 'curriculum_package'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
905 906 907 908 909 910 911 912 913 914
    __table_args__ = {'comment': '课程包表'}

    id = Column(String(64), primary_key=True, comment='主键id')
    title = Column(String(20), nullable=False, comment='课程包标题')
    info = Column(String(100), comment='简介')
    cover = Column(String(100), comment='封面')
    status = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='状态')
    tag = Column(INTEGER(5), comment='标签')
    sort = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='排序')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
赵杰's avatar
赵杰 committed
915 916 917 918 919
    create_by = Column(String(50), nullable=False)
    update_time = Column(DateTime)
    delete_tag = Column(INTEGER(1), nullable=False)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
920
class CurriculumPackageContent(Base):
赵杰's avatar
赵杰 committed
921 922 923
    __tablename__ = 'curriculum_package_content'

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
924 925 926 927
    rel_id = Column(String(64), nullable=False, comment='关联id')
    title = Column(String(50), nullable=False, comment='标题')
    cover = Column(String(100), comment='封面')
    content_type = Column(INTEGER(1), nullable=False, comment='类型')
赵杰's avatar
赵杰 committed
928
    start_time = Column(DateTime)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
929 930
    status = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='状态')
    sort = Column(INTEGER(11), nullable=False, server_default=text("'0'"), comment='排序')
赵杰's avatar
赵杰 committed
931
    create_time = Column(DateTime, nullable=False)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
932
    create_by = Column(String(64), nullable=False, comment='创建人')
赵杰's avatar
赵杰 committed
933
    update_time = Column(DateTime, nullable=False)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
934 935
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='删除状态')
    res_id = Column(String(64), comment='关联资源ID')
赵杰's avatar
赵杰 committed
936 937


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
938
class CurriculumPrice(Base):
赵杰's avatar
赵杰 committed
939
    __tablename__ = 'curriculum_price'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
940
    __table_args__ = {'comment': '定价表'}
赵杰's avatar
赵杰 committed
941 942

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960
    rel_id = Column(String(64), nullable=False, index=True, comment='关联id')
    charge_mode = Column(INTEGER(1), nullable=False, comment='付费模式 1:免费 2:积分  3:现金')
    price = Column(BIGINT(10), comment='价格')
    crossed_price = Column(BIGINT(10), comment='划线价')
    promo = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否促销 0:否  1 :是 ')
    promo_price = Column(BIGINT(10), comment='促销价格')
    promo_start_time = Column(DateTime, comment='促销开始日期')
    promo_end_time = Column(DateTime, comment='促销结束日期')
    use_score = Column(INTEGER(1), server_default=text("'0'"), comment='使用积分 0:不使用 1:使用 (保留字段)')
    score = Column(INTEGER(11), comment='积分')
    is_role_price = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否有角色价 0:没有  1:有')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
    create_by = Column(String(64), nullable=False, comment='创建人')
    update_time = Column(DateTime, nullable=False, comment='更新时间')
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='删除')


class CurriculumRel(Base):
赵杰's avatar
赵杰 committed
961 962 963 964 965
    __tablename__ = 'curriculum_rel'
    __table_args__ = (
        Index('index_cid_relid_reltype', 'c_id', 'rel_id', 'rel_type'),
    )

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
966 967 968 969 970 971 972
    id = Column(String(64), primary_key=True, comment='主键id')
    c_id = Column(String(64), nullable=False, comment='课程id')
    rel_id = Column(String(64), nullable=False, comment='相关联id')
    rel_type = Column(INTEGER(1), nullable=False, comment='关联类型 1:课程 2:直播 3 :精选 4:训练营')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
    create_by = Column(String(64), nullable=False, comment='创建人')
    delete_tag = Column(INTEGER(1), nullable=False, comment='删除标识')
赵杰's avatar
赵杰 committed
973 974


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
975
class CurriculumRe(Base):
赵杰's avatar
赵杰 committed
976
    __tablename__ = 'curriculum_res'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
    __table_args__ = {'comment': '课程资源'}

    id = Column(String(64), primary_key=True, comment='主键id')
    title = Column(String(50), nullable=False, comment='课程名称')
    audio = Column(String(128), comment='课程音视频')
    audio_type = Column(INTEGER(1), comment='音频类型')
    teacher_id = Column(String(64), comment='讲师id')
    teacher_name = Column(String(128), comment='讲师姓名')
    content = Column(MEDIUMTEXT, comment='文稿内容')
    duration = Column(INTEGER(11), comment='时长')
    file_size = Column(INTEGER(11), comment='文件大小KB')
    org_id = Column(String(64), index=True, comment='组织id')
    room_pwd = Column(String(50), comment='房间密码')
    create_by = Column(String(64), nullable=False, comment='创建人')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
    update_by = Column(String(64), comment='更新人')
    update_time = Column(DateTime, comment='更新时间')
    delete_tag = Column(INTEGER(1), nullable=False, comment='删除标识')
    read_num = Column(INTEGER(11), server_default=text("'0'"), comment='阅读数')
    read_base_num = Column(INTEGER(11), server_default=text("'0'"), comment='阅读基础数')
    status = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='状态')
    sort = Column(INTEGER(11), nullable=False, server_default=text("'0'"), comment='排序')
    info = Column(String(255), server_default=text("''"), comment='简介')
    cover = Column(String(255), nullable=False, server_default=text("''"), comment='封面')
赵杰's avatar
赵杰 committed
1001 1002 1003 1004


t_curriculum_share_config = Table(
    'curriculum_share_config', metadata,
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1005 1006 1007 1008 1009 1010 1011 1012 1013
    Column('id', String(64), nullable=False, comment='主键'),
    Column('title', String(50), nullable=False, comment='分享标题'),
    Column('content', String(100), nullable=False, comment='分享内容'),
    Column('cover', String(100), nullable=False, comment='封面'),
    Column('rel_id', String(64), nullable=False, comment='关联id'),
    Column('create_time', DateTime, nullable=False, comment='创建内容'),
    Column('update_time', DateTime, nullable=False, comment='更新时间'),
    Column('create_by', String(64), nullable=False, comment='创建人'),
    comment='课程分享配置'
赵杰's avatar
赵杰 committed
1014 1015 1016
)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1017
class CurriculumSubject(Base):
赵杰's avatar
赵杰 committed
1018 1019
    __tablename__ = 'curriculum_subject'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038
    id = Column(String(64), primary_key=True, comment='唯一主键')
    cs_name = Column(String(128), comment='专题名称')
    cs_desc = Column(String(1024), comment='专题描述')
    cs_imgurl = Column(String(256), comment='首页推荐图片')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    cs_detail = Column(MEDIUMTEXT, comment='专题详情')
    cs_introduce_code = Column(String(100), comment='群设置 推荐码 ')
    cs_open_type = Column(INTEGER(1), comment='0 :任何人参与 1 注册用户 ')
    status = Column(INTEGER(1), comment='状态')
    org_id = Column(String(64), comment='组织机构')
    update_status = Column(INTEGER(1), server_default=text("'0'"), comment='0: 更新中 1:停更')
    read_limit = Column(INTEGER(11), server_default=text("'0'"), comment='收听限制')


class CurriculumSubjectChapter(Base):
赵杰's avatar
赵杰 committed
1039
    __tablename__ = 'curriculum_subject_chapter'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067
    __table_args__ = {'comment': '专题章节'}

    id = Column(String(64), primary_key=True, comment='主键id')
    cs_id = Column(String(64), nullable=False, comment='专题id')
    title = Column(String(255), nullable=False, comment='章节名称')
    teacher_id = Column(String(64), comment='讲师id')
    teacher_name = Column(String(100), comment='讲师姓名')
    status = Column(INTEGER(1), nullable=False, comment='状态')
    uptime = Column(DateTime, comment='定时上架时间')
    release_time = Column(DateTime, comment='上架时间')
    fee_type = Column(INTEGER(1), comment='试听设置')
    content = Column(Text, comment='文稿')
    teacher_info = Column(Text, comment='讲师描述')
    audio = Column(String(128), nullable=False, comment='音频')
    audio_size = Column(INTEGER(11), comment='音频大小')
    audio_length = Column(INTEGER(11), comment='音频时长')
    audio_type = Column(INTEGER(1), comment='音频类型')
    read_base = Column(INTEGER(11), comment='阅读基数')
    read_num = Column(INTEGER(11), server_default=text("'0'"), comment='阅读人数')
    sort_priority = Column(INTEGER(11), server_default=text("'0'"), comment='排序')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
    create_by = Column(String(64), nullable=False, comment='创建人')
    update_time = Column(DateTime, comment='更新时间')
    update_by = Column(String(64), comment='更新人')


class CurriculumTeacher(Base):
赵杰's avatar
赵杰 committed
1068 1069
    __tablename__ = 'curriculum_teacher'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ct_headimg = Column(String(128), comment='老师头像')
    ct_teaname = Column(String(64), comment='老师姓名')
    ct_teadesc = Column(String(1024), comment='老师简介')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    ct_userId = Column(String(64), comment='关联用户')
    ct_user_id = Column(String(64), comment='关联用户')
赵杰's avatar
赵杰 committed
1081 1082 1083 1084


t_customer_ifa_rel = Table(
    'customer_ifa_rel', metadata,
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1085 1086 1087 1088 1089 1090 1091 1092 1093
    Column('id', String(64), nullable=False, comment='主键'),
    Column('user_id', String(64), nullable=False, comment='理财师id'),
    Column('customer_id', String(64), nullable=False, comment='客户id'),
    Column('create_time', DateTime, nullable=False, comment='创建时间'),
    Column('create_by', String(64), nullable=False, comment='创建人'),
    Column('update_time', DateTime, comment='更时间'),
    Column('update_by', String(64), comment=' 更新人'),
    Column('delete_id', INTEGER(1), nullable=False, server_default=text("'0'"), comment='删除标识'),
    comment='客户理财师关联表'
赵杰's avatar
赵杰 committed
1094 1095 1096 1097 1098
)


t_customer_info = Table(
    'customer_info', metadata,
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1099 1100 1101 1102 1103 1104 1105 1106
    Column('id', String(64), nullable=False, comment='主键'),
    Column('customer_name', String(50), server_default=text("''"), comment='客户姓名'),
    Column('create_time', DateTime, comment='创建时间'),
    Column('create_by', String(64), server_default=text("''"), comment='创建人'),
    Column('update_time', DateTime, comment='更新时间'),
    Column('update_by', String(64), comment='更新人'),
    Column('delete_tag', INTEGER(1), server_default=text("'0'"), comment='删除标识'),
    comment='客户表'
赵杰's avatar
赵杰 committed
1107 1108 1109 1110 1111
)


t_customer_order = Table(
    'customer_order', metadata,
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129
    Column('id', String(64), nullable=False, comment='主键id'),
    Column('user_id', String(64), server_default=text("''"), comment='理财师id'),
    Column('customer_id', String(64), server_default=text("''"), comment='客户id'),
    Column('folio_name', VARCHAR(64), server_default=text("'default'"), comment='组合名称,默认default,可以单用户多组合'),
    Column('fund_id', String(64), server_default=text("''"), comment='产品id'),
    Column('order_type', INTEGER(1), comment='1:申购  2:赎回'),
    Column('pay_date', Date, comment='打款日期'),
    Column('subscription_fee', DECIMAL(22, 6), comment='申购费'),
    Column('confirm_share_date', Date, comment='份额确认日期'),
    Column('confirm_share', DECIMAL(22, 6), comment='确认份额'),
    Column('confirm_amount', DECIMAL(22, 6), comment='确认金额'),
    Column('nav', DECIMAL(22, 6), comment='净值'),
    Column('remark', String(255), comment='备注'),
    Column('create_time', DateTime, comment='创建时间'),
    Column('create_by', String(64), comment='创建时间'),
    Column('update_time', DateTime, comment='更新时间'),
    Column('update_by', String(64), comment='更新人'),
    comment='客户订单'
赵杰's avatar
赵杰 committed
1130 1131 1132
)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1133
class DaySelection(Base):
赵杰's avatar
赵杰 committed
1134 1135
    __tablename__ = 'day_selection'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ds_type = Column(String(64), comment='类型')
    ds_subject_id = Column(String(64), comment='主题ID')
    ds_id = Column(String(64), comment='关联数据ID')
    ds_sort = Column(INTEGER(128), comment='排序')
    ds_ext = Column(String(128), comment='扩展')
    ds_isrecommend = Column(String(3), comment='是否推荐0:否 1:是')
    ds_focus_topic = Column(String(3), comment='是否焦点话题0:否1:是')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class DaySubject(Base):
赵杰's avatar
赵杰 committed
1152 1153
    __tablename__ = 'day_subject'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ds_title = Column(String(128), comment='标题')
    ds_date = Column(Date, comment='主题日期')
    ds_status = Column(String(3), comment='状态')
    ds_ispush_content = Column(String(3), comment='是否推内容 0:否 1:是')
    ds_picurl = Column(String(256), comment='不推内容时图片地址')
    ds_pic_link = Column(String(256), comment='图片跳转链接')
    ds_thumbnail = Column(String(256), comment='缩略图')
    ds_issettop = Column(String(3), comment='是否置顶0:否 1:是')
    ds_day_title = Column(String(128), comment='好奇心日语标题')
    ds_day_content = Column(Text, comment='好奇心日语内容')
    ds_taskuptime = Column(DateTime, comment='定时上架时间')
    ds_pt = Column(String(128), comment='平台')
赵杰's avatar
赵杰 committed
1167
    base_browse_num = Column(INTEGER(5))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1168 1169 1170 1171 1172
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
1173 1174


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1175
class Exam(Base):
赵杰's avatar
赵杰 committed
1176 1177
    __tablename__ = 'exam'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ex_name = Column(String(256), comment='试卷名称')
    ex_starttime = Column(DateTime, comment='考试开始时间')
    ex_endtime = Column(DateTime, comment='考试结束时间')
    ex_totalscore = Column(INTEGER(5), comment='满分')
    ex_passscore = Column(INTEGER(5), comment='合格分')
    ex_status = Column(String(3), comment='状态')
    org_id = Column(String(64), comment='机构ID')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class ExamContent(Base):
赵杰's avatar
赵杰 committed
1194 1195
    __tablename__ = 'exam_content'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ex_id = Column(String(64), comment='试卷ID')
    ec_type = Column(String(3), comment='题目类型')
    ec_title = Column(String(512), comment='标题')
    ec_content = Column(String(1024), comment='内容选项')
    ec_right = Column(String(64), comment='正确答案')
    ear_score = Column(INTEGER(5), comment='题目分数')
    org_id = Column(String(64), comment='机构ID')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class FinProRe(Base):
赵杰's avatar
赵杰 committed
1212 1213
    __tablename__ = 'fin_pro_res'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    name = Column(String(64), comment='名称')
    abbr = Column(String(64), comment='名称简拼')
    bak = Column(String(128), comment='备注')
    status = Column(INTEGER(1), comment='状态')
    flag = Column(String(3), comment='标识0:机构产品 1:用户自定义产品')
    resjson = Column(Text, comment='产品资料')
    desjson = Column(MEDIUMTEXT, comment='宣传文案')
    pro_imgurl = Column(String(256), comment='产品缩略图')
    pro_bright = Column(Text, comment='产品亮点')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    org_id = Column(String(64), comment='机构Id')
    pro_tag = Column(String(2048), comment='产品标签')
    title_sw = Column(String(3), comment='名称开关')
    pro_title = Column(String(128), comment='列表名称')
    pro_risk_config = Column(Text, comment='风险揭示书配置')
    investor_certification_switch = Column(INTEGER(1), comment='风险管控开关')
    risk_level = Column(INTEGER(2), comment='风险评级')
    ar_review_by = Column(String(64), comment='审核人')
    ar_review_time = Column(DateTime, comment='审核时间')
    ar_submit_by = Column(String(64), comment='提交发布人')
    ar_submit_time = Column(DateTime, comment='提交发布时间')
    ar_release_by = Column(String(64), comment='上架人')
    ar_release_time = Column(DateTime, comment='上架时间')
    pro_type = Column(String(64), comment='产品类型')
    ar_solt_by = Column(String(64), comment='下架人')
    ar_solt_time = Column(DateTime, comment='下架时间')
    pro_soldout_Time = Column(DateTime, comment='预下架时间')
    raise_start = Column(DateTime, comment='募集开始时间')
    raise_end = Column(DateTime, comment='募集结束时间')
    pro_status = Column(String(64), comment='产品状态')
    raise_num = Column(String(64), comment='募集量')


class FriendArticle(Base):
赵杰's avatar
赵杰 committed
1253 1254
    __tablename__ = 'friend_article'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    af_title = Column(VARCHAR(128), comment='标题')
    af_thumbnail = Column(String(256), comment='缩略图')
    af_author = Column(String(32), comment='文章作者')
    af_source = Column(String(32), comment='文章来源')
    af_crawler_url = Column(String(512), comment='抓取来源Url')
    af_content = Column(MEDIUMTEXT, comment='内容')
    af_imgs = Column(Text, comment='图片')
    af_status = Column(INTEGER(3), comment='状态')
    af_push_to = Column(String(3), comment='推送目标 0:全员 1:团队')
    af_push_teamid = Column(String(1024), comment='团队ID')
    af_type = Column(String(128), comment='文章类型')
赵杰's avatar
赵杰 committed
1267
    openid = Column(String(128), comment='openid')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291
    org_id = Column(String(128), comment='机构ID')
    share_msg = Column(String(2048), comment='分享信息')
    ar_abstract = Column(String(1024), comment='摘要')
    ar_audio = Column(String(256), comment='音频')
    ar_audio_length = Column(INTEGER(8), comment='音频时长')
    af_proid = Column(String(512), comment='关联产品ID')
    af_company_intro = Column(String(3), comment='是否关联公司介绍')
    af_planid = Column(String(64), comment='直销活动ID')
    af_tags = Column(String(128), comment='关联标签')
    af_articleid = Column(String(64), comment='原文章ID')
    af_is_protected = Column(INTEGER(128), comment='是否加密')
    af_password = Column(String(128), comment='密码')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    af_review_by = Column(String(64), comment='审核人')
    af_review_time = Column(DateTime, comment='审核时间')
    af_reject_reason = Column(String(64), comment='驳回理由')
    af_reject_time = Column(String(64), comment='驳回时间')


class Func(Base):
赵杰's avatar
赵杰 committed
1292 1293
    __tablename__ = 'func'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='主键')
    f_tem_code = Column(String(16), comment='所属模块')
    f_tem_name = Column(String(32), comment='所属模块名称')
    f_code = Column(String(16), comment='功能码')
    f_name = Column(String(32), comment='功能名称')
    f_name_tp = Column(String(32), comment='探普学院对应功能名称')
    f_router = Column(String(256), comment='路由')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class HomeRemmend(Base):
赵杰's avatar
赵杰 committed
1309 1310
    __tablename__ = 'home_remmend'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1311 1312 1313 1314 1315 1316 1317
    id = Column(String(64), primary_key=True, comment='唯一主键')
    remmend_data = Column(Text, comment='自定义')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
1318 1319


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1320
class IfaWechatPoster(Base):
赵杰's avatar
赵杰 committed
1321 1322
    __tablename__ = 'ifa_wechat_poster'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1323 1324 1325 1326 1327 1328 1329
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    poster_imgurl = Column(String(256), comment='海报图片地址')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
1330 1331


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1332
class IfaWechatStore(Base):
赵杰's avatar
赵杰 committed
1333
    __tablename__ = 'ifa_wechat_store'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1334
    __table_args__ = {'comment': '微店信息表'}
赵杰's avatar
赵杰 committed
1335

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1336
    id = Column(String(64), primary_key=True, comment='唯一主键')
赵杰's avatar
赵杰 committed
1337
    storename = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1338 1339 1340 1341 1342
    ifaid = Column(String(64), nullable=False, comment='理财师ID')
    today_guest = Column(INTEGER(11), nullable=False, comment='今日访客')
    today_new_guest = Column(INTEGER(11), nullable=False, comment='今日新增访客')
    sign = Column(String(64), comment='签名')
    today_date = Column(Date, comment='今日日期')
赵杰's avatar
赵杰 committed
1343 1344


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1345
class ImpressionLabel(Base):
赵杰's avatar
赵杰 committed
1346 1347
    __tablename__ = 'impression_label'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1348 1349 1350 1351 1352 1353 1354
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    il_label = Column(String(64), comment='印象标签')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
1355 1356


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1357
class InvestorRz(Base):
赵杰's avatar
赵杰 committed
1358 1359
    __tablename__ = 'investor_rz'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ir_explain = Column(String(512), comment='说明')
    option_a = Column(String(512), comment='选项A')
    option_b = Column(String(512), comment='选项B')
    staus = Column(INTEGER(3), nullable=False, server_default=text("'1'"), comment='启用状态 1:启用 0:不启用')
    ir_startime = Column(DateTime, comment='启用时间')
    ir_endtime = Column(DateTime, comment='到期时间')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='删除标识')
    title = Column(String(128), nullable=False, server_default=text("''"), comment='标题')
    sub_title = Column(String(512), server_default=text("''"), comment='副标题')


class OperateActivityNewyeardraw(Base):
赵杰's avatar
赵杰 committed
1377 1378
    __tablename__ = 'operate_activity_newyeardraw'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1379 1380 1381 1382 1383 1384
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    oan_action = Column(String(3), comment='动作行为')
    oan_username = Column(String(64), comment='故事人')
    oan_type = Column(String(3), comment='签类型')
    oan_share_userid = Column(String(64), comment='分享人')
    oan_share_sourceid = Column(String(64), comment='分享源ID')
赵杰's avatar
赵杰 committed
1385
    oan_resimgurl = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1386 1387 1388 1389 1390
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
1391 1392


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1393
class Operation(Base):
赵杰's avatar
赵杰 committed
1394 1395
    __tablename__ = 'operation'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    operation_type = Column(INTEGER(11), comment='日志类型')
    sub_operation_type = Column(INTEGER(11), comment='内容类型')
    ref_id = Column(String(64), comment='内容编号')
    ref_title = Column(String(128), comment='内容标题')
    action_name = Column(INTEGER(11), comment='操作类型')
    org_id = Column(String(64), comment='机构ID')
    create_id = Column(String(64), comment='创建人Id')
    create_name = Column(String(128), comment='创建人姓名')
    create_time = Column(DateTime, comment='创建时间')
赵杰's avatar
赵杰 committed
1406 1407


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1408
class OrderFlow(Base):
赵杰's avatar
赵杰 committed
1409 1410
    __tablename__ = 'order_flow'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ab_ordernum = Column(String(128), comment='订单号')
    ab_price = Column(BIGINT(12), comment='产品价格')
    ab_score = Column(BIGINT(12), comment='积分')
    ab_score_deduct = Column(BIGINT(12), comment='积分抵扣')
    ab_account_deduct = Column(BIGINT(12), comment='账户余额抵扣')
    ab_payment = Column(BIGINT(12), comment='支付通道付款金额')
    ab_pay_mode = Column(String(3), comment='支付方式')
    ab_total_money = Column(BIGINT(12), comment='订单总额')
    ab_type = Column(String(3), comment='产品类型')
    ab_proid = Column(String(64), comment='产品ID')
    ab_pro_siid = Column(String(64), comment='产品规格ID')
    ab_si_type = Column(String(3), comment='产品规格类型')
    ab_si_name = Column(String(32), comment='产品规格规格名称')
    ab_si_code = Column(String(16), comment='产品规格规格编码')
    ab_si_pattern = Column(String(3), comment='产品规格定价模式')
    ab_status = Column(String(16), comment='状态')
    ab_rights_status = Column(String(3), comment='权益分配状态')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    unionid = Column(String(64), comment='微信unionid')


class Org(Base):
赵杰's avatar
赵杰 committed
1438 1439
    __tablename__ = 'org'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='主键')
    org_code = Column(String(64), comment='机构唯一识别码')
    org_name = Column(String(64), comment='机构名称')
    automatic_processing = Column(INTEGER(128), comment='自动通过认证')
    isbuy_selection = Column(String(3), comment='是否购买了精选:0:否 1:是')
    isbuy_todayfocus = Column(String(3), comment='是否购买了今日聚焦 0:否 1:是')
    ar_push_labels = Column(Text, comment='推送标签')
    fun_codes = Column(String(1024), comment='功能码')
    homepage_custom = Column(Text, comment='个人主页定制')
    content_set = Column(String(512), comment='获客内容设置')
    card_template = Column(INTEGER(128), comment='名片模板')
    accredited_investor_switch = Column(INTEGER(1), comment='合格投资者认证开关')
    friend_tools_switch = Column(INTEGER(1), comment='朋友圈助手开关')
    tag_category_id = Column(String(64), comment='机构主体类别')
    aliyun_sign_name = Column(String(128), comment='阿里云短信签名')
    aliyun_tempcode = Column(String(128), comment='阿里云消息模版ID')
    aliyun_access_key_id = Column(String(128), comment='阿里云AccessKeyId')
    aliyun_access_key_secret = Column(String(128), comment='阿里云AccessKeySecret')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class PhotoLive(Base):
赵杰's avatar
赵杰 committed
1466 1467
    __tablename__ = 'photo_live'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    pl_name = Column(String(128), comment='活动名称')
    pl_start_time = Column(DateTime, comment='活动开始时间')
    pl_end_time = Column(DateTime, comment='活动结束时间')
    pl_address = Column(String(256), comment='活动地点')
    pl_cover = Column(String(256), comment='欢迎页照片')
    pl_background = Column(String(256), comment='内容页照片')
    pl_watermark = Column(String(64), comment='照片水印')
    pl_share_desc = Column(String(64), comment='分享文案')
    pl_share_logo = Column(String(256), comment='分享图片')
    pl_adv = Column(String(128), comment='底部滚动条文案')
    org_id = Column(String(64), comment='机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class PhotoLiveExt(Base):
赵杰's avatar
赵杰 committed
1488 1489
    __tablename__ = 'photo_live_ext'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    photo_live_id = Column(String(64), comment='照片直播活动Id')
    ple_type = Column(INTEGER(3), comment='类型')
    target_id = Column(String(64), comment='目标Id')
    ple_adv_logo = Column(String(256), comment='广告图片')
    ple_adv_desc = Column(String(64), comment='广告语')
    org_id = Column(String(64), comment='机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class PhotoLiveLike(Base):
赵杰's avatar
赵杰 committed
1505 1506
    __tablename__ = 'photo_live_like'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1507 1508 1509 1510 1511 1512 1513 1514 1515 1516
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    photo_live_id = Column(String(64), comment='照片直播活动Id')
    user_info_id = Column(String(64), comment='用户Id')
    file_id = Column(String(64), comment='图片文件Id')
    org_id = Column(String(64), comment='机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
1517 1518


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1519
class ProReservation(Base):
赵杰's avatar
赵杰 committed
1520 1521
    __tablename__ = 'pro_reservation'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538
    id = Column(String(64), primary_key=True, comment='唯一主键')
    pr_pro_id = Column(String(64), comment='产品ID')
    pr_user_id = Column(String(64), comment='用户id')
    pr_username = Column(String(80), comment='用户姓名')
    pr_mobile_phone = Column(String(20), comment='用户手机号')
    pr_fauser_id = Column(String(64), comment='理财师Id')
    pr_team_id = Column(String(64), comment='团队ID')
    pr_team_fullpathid = Column(String(1024), comment='团队全路径ID')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')


class ProblemFeedback(Base):
赵杰's avatar
赵杰 committed
1539 1540
    __tablename__ = 'problem_feedback'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1541 1542 1543 1544 1545 1546 1547 1548 1549
    id = Column(String(64), primary_key=True, comment='唯一主键')
    pf_type = Column(String(32), comment='类型')
    pf_cont = Column(String(512), comment='反馈内容')
    pf_pic = Column(String(1024), comment='图片')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
1550 1551


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1552
class QrtzCalendar(Base):
赵杰's avatar
赵杰 committed
1553 1554 1555 1556 1557 1558 1559
    __tablename__ = 'qrtz_calendars'

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    CALENDAR_NAME = Column(String(190), primary_key=True, nullable=False)
    CALENDAR = Column(LargeBinary, nullable=False)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1560
class QrtzFiredTrigger(Base):
赵杰's avatar
赵杰 committed
1561 1562 1563
    __tablename__ = 'qrtz_fired_triggers'
    __table_args__ = (
        Index('IDX_QRTZ_FT_T_G', 'SCHED_NAME', 'TRIGGER_NAME', 'TRIGGER_GROUP'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1564 1565
        Index('IDX_QRTZ_FT_JG', 'SCHED_NAME', 'JOB_GROUP'),
        Index('IDX_QRTZ_FT_INST_JOB_REQ_RCVRY', 'SCHED_NAME', 'INSTANCE_NAME', 'REQUESTS_RECOVERY'),
赵杰's avatar
赵杰 committed
1566
        Index('IDX_QRTZ_FT_TG', 'SCHED_NAME', 'TRIGGER_GROUP'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1567 1568
        Index('IDX_QRTZ_FT_J_G', 'SCHED_NAME', 'JOB_NAME', 'JOB_GROUP'),
        Index('IDX_QRTZ_FT_TRIG_INST_NAME', 'SCHED_NAME', 'INSTANCE_NAME')
赵杰's avatar
赵杰 committed
1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585
    )

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    ENTRY_ID = Column(String(95), primary_key=True, nullable=False)
    TRIGGER_NAME = Column(String(190), nullable=False)
    TRIGGER_GROUP = Column(String(190), nullable=False)
    INSTANCE_NAME = Column(String(190), nullable=False)
    FIRED_TIME = Column(BIGINT(13), nullable=False)
    SCHED_TIME = Column(BIGINT(13), nullable=False)
    PRIORITY = Column(INTEGER(11), nullable=False)
    STATE = Column(String(16), nullable=False)
    JOB_NAME = Column(String(190))
    JOB_GROUP = Column(String(190))
    IS_NONCONCURRENT = Column(String(1))
    REQUESTS_RECOVERY = Column(String(1))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1586
class QrtzJobDetail(Base):
赵杰's avatar
赵杰 committed
1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604
    __tablename__ = 'qrtz_job_details'
    __table_args__ = (
        Index('IDX_QRTZ_J_GRP', 'SCHED_NAME', 'JOB_GROUP'),
        Index('IDX_QRTZ_J_REQ_RECOVERY', 'SCHED_NAME', 'REQUESTS_RECOVERY')
    )

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    JOB_NAME = Column(String(190), primary_key=True, nullable=False)
    JOB_GROUP = Column(String(190), primary_key=True, nullable=False)
    DESCRIPTION = Column(String(250))
    JOB_CLASS_NAME = Column(String(250), nullable=False)
    IS_DURABLE = Column(String(1), nullable=False)
    IS_NONCONCURRENT = Column(String(1), nullable=False)
    IS_UPDATE_DATA = Column(String(1), nullable=False)
    REQUESTS_RECOVERY = Column(String(1), nullable=False)
    JOB_DATA = Column(LargeBinary)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1605
class QrtzLock(Base):
赵杰's avatar
赵杰 committed
1606 1607 1608 1609 1610 1611
    __tablename__ = 'qrtz_locks'

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    LOCK_NAME = Column(String(40), primary_key=True, nullable=False)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1612
class QrtzPausedTriggerGrp(Base):
赵杰's avatar
赵杰 committed
1613 1614 1615 1616 1617 1618
    __tablename__ = 'qrtz_paused_trigger_grps'

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    TRIGGER_GROUP = Column(String(190), primary_key=True, nullable=False)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1619
class QrtzSchedulerState(Base):
赵杰's avatar
赵杰 committed
1620 1621 1622 1623 1624 1625 1626 1627
    __tablename__ = 'qrtz_scheduler_state'

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    INSTANCE_NAME = Column(String(190), primary_key=True, nullable=False)
    LAST_CHECKIN_TIME = Column(BIGINT(13), nullable=False)
    CHECKIN_INTERVAL = Column(BIGINT(13), nullable=False)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1628
class Quotation(Base):
赵杰's avatar
赵杰 committed
1629
    __tablename__ = 'quotations'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1630
    __table_args__ = {'comment': '每日金句'}
赵杰's avatar
赵杰 committed
1631 1632

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646
    title = Column(String(100), comment='标题')
    content_type = Column(INTEGER(1), comment='1:金句 2:节日祝福 3正能量')
    quotation_date = Column(Date, comment='日期')
    content = Column(Text, nullable=False, comment='内容')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
    create_by = Column(String(64), nullable=False, comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    status = Column(INTEGER(1), nullable=False, comment='0:待上架 1:已上架  2:已下架')
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='删除标识 ')
    advance_time = Column(Date, comment='预上架时间')


class Rebroadcast(Base):
赵杰's avatar
赵杰 committed
1647 1648
    __tablename__ = 'rebroadcast'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    rd_time = Column(DateTime, comment='转播时间')
    rd_by_themeid = Column(String(64), comment='被转播直播间ID')
    rd_themeid = Column(String(64), comment='直播间ID')
    company_name = Column(INTEGER(11), comment='预约人数')
    photo = Column(INTEGER(11), comment='参与人数')
    state = Column(INTEGER(11), comment='回放人数')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class ReportActvolume(Base):
赵杰's avatar
赵杰 committed
1664 1665
    __tablename__ = 'report_actvolume'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ra_team_id = Column(String(64), comment='团队ID')
    ra_team_fullpathid = Column(String(1024), comment='团队全路径ID')
    ra_year = Column(INTEGER(5), comment='年')
    ra_date = Column(Date, comment='日期')
    ra_sharearticle_num = Column(BIGINT(11), comment='发文章次数')
    ra_sharemp_num = Column(BIGINT(11), comment='发名片次数')
    ra_sharehuiwu_num = Column(BIGINT(11), comment='发会务次数')
    ra_sharepro_num = Column(BIGINT(11), comment='发产品次数')
    ra_study_timelength = Column(BIGINT(11), comment='学习总时长')
    ra_sharecompany_num = Column(BIGINT(11), comment='发公司资料次数')
    ra_daka_num = Column(BIGINT(11), comment='拜访打卡次数')
    ra_peixun_canyu_num = Column(BIGINT(11), comment='培训总人数')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')


class ReportCnReportform(Base):
赵杰's avatar
赵杰 committed
1688 1689
    __tablename__ = 'report_cn_reportform'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728
    id = Column(String(64), primary_key=True, comment='唯一主键')
    cn_teamid = Column(String(64), comment='团队Id')
    cn_headimg = Column(String(256), comment='头像')
    cn_username = Column(String(64), comment='姓名')
    cn_year = Column(INTEGER(5), comment='年')
    cn_val = Column(INTEGER(5), comment='值')
    cn_type = Column(INTEGER(5), comment='类型')
    cn_article_chuda_num = Column(BIGINT(11), comment='文章触达客户人数')
    cn_article_frist_num = Column(BIGINT(11), comment='文章一级客户人数')
    cn_article_forword_num = Column(BIGINT(11), comment='文章客户转发次数')
    cn_article_fission_num = Column(BIGINT(11), comment='文章裂变客户数')
    cn_article_clickpro_num = Column(BIGINT(11), comment='文章点击产品人数')
    cn_article_clickmp_num = Column(BIGINT(11), comment='文章点击名片人数')
    cn_article_clickim_num = Column(BIGINT(11), comment='文章点击聊一聊')
    cn_mp_chuda_num = Column(BIGINT(11), comment='名片触达客户人数')
    cn_mp_change_num = Column(BIGINT(11), comment='名片交换/保存名片数')
    cn_mp_grant_num = Column(BIGINT(11), comment='名片授权电话客户数')
    cn_huiwu_chuda_num = Column(BIGINT(11), comment='会务触达客户人数')
    cn_huiwu_baoming_num = Column(BIGINT(11), comment='会务报名客户数')
    cn_huiwu_daochang_num = Column(BIGINT(11), comment='会务到场人数')
    cn_huiwu_chengjiao_num = Column(BIGINT(11), comment='会务成交客户数')
    cn_pro_chuda_num = Column(BIGINT(11), comment='产品触达客户人数')
    cn_pro_yuyue_num = Column(BIGINT(11), comment='产品预约客户数')
    cn_sharearticle_num = Column(BIGINT(11), comment='发文章次数')
    cn_sharemp_num = Column(BIGINT(11), comment='发名片次数')
    cn_sharehuiwu_num = Column(BIGINT(11), comment='发会务次数')
    cn_sharepro_num = Column(BIGINT(11), comment='发产品次数')
    cn_sharecompany_num = Column(BIGINT(11), comment='发公司资料次数')
    cn_study_timelength = Column(BIGINT(11), comment='学习总时长')
    cn_daka_num = Column(BIGINT(11), comment='拜访打卡次数')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')


class ReportProAnalysi(Base):
赵杰's avatar
赵杰 committed
1729 1730
    __tablename__ = 'report_pro_analysis'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ta_year = Column(INTEGER(5), comment='年')
    ta_month = Column(INTEGER(5), comment='月')
    ta_day = Column(INTEGER(5), comment='日')
    ta_teamid = Column(String(64), comment='团队ID')
    ta_fullpathid = Column(String(1024), comment='团队全路径ID')
    ta_name = Column(String(128), comment='团队名称')
    ta_pro_id = Column(String(64), comment='产品Id')
    ta_tgd = Column(BIGINT(11), comment='推广度')
    ta_rxd = Column(BIGINT(11), comment='热销度')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')


class ReportProInterest(Base):
赵杰's avatar
赵杰 committed
1750 1751
    __tablename__ = 'report_pro_interest'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762
    id = Column(String(64), primary_key=True, comment='唯一主键')
    rpi_proid = Column(String(64), comment='产品ID')
    rpi_userid = Column(String(64), comment='用户id')
    rpi_interest_val = Column(INTEGER(5), comment='兴趣值')
    rpi_article_val = Column(INTEGER(5), comment='文章值')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
1763 1764


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1765
class ReportTeamAnalysi(Base):
赵杰's avatar
赵杰 committed
1766 1767
    __tablename__ = 'report_team_analysis'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ta_year = Column(INTEGER(5), comment='年')
    ta_month = Column(INTEGER(5), comment='月')
    ta_day = Column(INTEGER(5), comment='日')
    ta_teamid = Column(String(64), comment='团队ID')
    ta_fullpathid = Column(String(1024), comment='团队全路径ID')
    ta_name = Column(String(128), comment='团队名称')
    ta_hdl = Column(BIGINT(11), comment='活动量')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')


class Report(Base):
赵杰's avatar
赵杰 committed
1785 1786
    __tablename__ = 'reports'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    rt_timetype = Column(String(3), comment='时间类型')
    rt_type = Column(String(3), comment='报告类型')
    rt_title = Column(String(128), comment='标题')
    rt_thumbnail = Column(String(256), comment='缩略图')
    rt_digest = Column(String(256), comment='摘要')
    rt_author = Column(String(64), comment='作者')
    rt_headerimg = Column(String(256), comment='头像')
    rt_content = Column(MEDIUMTEXT, comment='内容')
    rt_isoriginal = Column(String(3), comment='是否原创')
    rt_label = Column(String(64), comment='标签')
    rt_fee_type = Column(String(3), comment='收费类型')
    rt_status = Column(String(3), comment='状态')
    rt_release_time = Column(DateTime, comment='上架时间')
    rt_vip_price = Column(BIGINT(12), comment='vip会员价')
    rt_common_price = Column(BIGINT(12), comment='普通会员价')
    rt_files = Column(MEDIUMTEXT, comment='附件')
    rt_collect_basenum = Column(BIGINT(8), comment='虚拟收藏数')
    rt_collect_actualnum = Column(BIGINT(8), comment='实际收藏数')
    rt_report_time = Column(DateTime, comment='报告时间')
    rt_read_basenum = Column(BIGINT(10), comment='虚拟阅读量')
    rt_read_actualnum = Column(BIGINT(10), comment='实际阅读量')
    createby = Column(String(64), comment='创建人')
    createtime = Column(DateTime, comment='创建时间')
    updateby = Column(String(64), comment='修改人')
    updatetime = Column(DateTime, comment='修改时间')
    deletetag = Column(String(3), comment='删除标识')


class RiskAssessment(Base):
赵杰's avatar
赵杰 committed
1817 1818
    __tablename__ = 'risk_assessment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    risk_name = Column(String(128), comment='测评名称')
    risk_description = Column(String(1024), comment='说明')
    risk_levels = Column(String(5120), comment='风险等级')
    risk_hight_score = Column(INTEGER(5), comment='测评最高分')
    risk_status = Column(String(128), comment='启用状态 0:否 1:是')
    risk_startime = Column(DateTime, comment='启用时间')
    risk_endtime = Column(DateTime, comment='到期时间')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    risk_expire = Column(INTEGER(3), comment='有效期(单位:月)')


class RiskAssessmentItem(Base):
赵杰's avatar
赵杰 committed
1837 1838
    __tablename__ = 'risk_assessment_item'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    risk_id = Column(String(64), comment='测评ID')
    risk_group = Column(String(3), comment='分类(关联常量表 分组类别:riskAssType)')
    risk_item_type = Column(String(3), comment='类型')
    risk_item_stem = Column(String(512), comment='题干')
    risk_item_options = Column(String(5120), comment='选项')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class SensitiveWord(Base):
赵杰's avatar
赵杰 committed
1854 1855
    __tablename__ = 'sensitive_word'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1856 1857 1858 1859 1860 1861 1862 1863
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    sensitive_words = Column(Text, comment='敏感词列表')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
1864 1865


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1866
class ShareCustom(Base):
赵杰's avatar
赵杰 committed
1867 1868
    __tablename__ = 'share_custom'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    sc_type = Column(INTEGER(10), comment='模块类型')
    sc_name = Column(String(64), comment='模块名称')
    sc_title = Column(String(256), comment='分享标题')
    sc_desc = Column(String(256), comment='分享描述')
    sc_log = Column(String(256), comment='分享logo')
    org_id = Column(String(64), comment='所属机构')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class SharePoster(Base):
赵杰's avatar
赵杰 committed
1884 1885
    __tablename__ = 'share_poster'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    sp_title = Column(String(64), comment='标题')
    sp_subhead = Column(String(64), comment='副标题')
    sp_copywriter = Column(String(1024), comment='海报文案')
    sp_image = Column(String(256), comment='海报图片')
    at_copy = Column(String(1024), comment='首次关注文案')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    sp_status = Column(String(3), comment='海报状态')


class ShyhMonthPerformance(Base):
赵杰's avatar
赵杰 committed
1901 1902
    __tablename__ = 'shyh_month_performance'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    perf_date = Column(Date, comment='数据日期')
    staff_no = Column(String(128), comment='员工工号')
    staff_name = Column(String(128), comment='员工姓名')
    staff_mobile_phone = Column(String(128), comment='手机号')
    staff_head_img = Column(String(256), comment='头像')
    source_grade = Column(String(128), comment='当前等级')
    branch_name = Column(String(128), comment='分行')
    sub_branch_name = Column(String(128), comment='支行')
    branch_network_name = Column(String(128), comment='网点')
    kpi_item1 = Column(DECIMAL(25, 10), comment='非公募代销销量')
    kpi_item1_rank = Column(INTEGER(10), comment='分区组内排名1')
    kpi_item2 = Column(DECIMAL(25, 10), comment='公募基金销量')
    kpi_item2_rank = Column(INTEGER(10), comment='分区组内排名2')
    kpi_item3 = Column(DECIMAL(25, 10), comment='保险销量')
    kpi_item3_rank = Column(INTEGER(10), comment='分区组内排名3')
    kpi_item4 = Column(DECIMAL(25, 10), comment='财富管理类业务中收')
    kpi_item4_rank = Column(INTEGER(10), comment='分区组内排名4')
    kpi_item5 = Column(DECIMAL(25, 10), comment='月日均100万元(含)以上客户净增')
    kpi_item5_rank = Column(INTEGER(10), comment='分区组内排名5')
    kpi_item6 = Column(DECIMAL(25, 10), comment='信贷资产类销量')
    kpi_item6_rank = Column(INTEGER(10), comment='分区组内排名6')
    kpi_item7 = Column(DECIMAL(25, 10), comment='存款销量')
    kpi_item7_rank = Column(INTEGER(10), comment='分区组内排名7')
    kpi_item8 = Column(DECIMAL(25, 10), comment='信用卡新户')
    kpi_item8_rank = Column(INTEGER(10), comment='分区组内排名8')
    kpi_item9 = Column(DECIMAL(25, 10), comment='新增社保卡')
    kpi_item9_rank = Column(INTEGER(10), comment='分区组内排名9')
赵杰's avatar
赵杰 committed
1931
    cycleFlag = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1932 1933 1934 1935 1936
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(3), comment='删除标识')
赵杰's avatar
赵杰 committed
1937 1938


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1939
class ShyhPerformance(Base):
赵杰's avatar
赵杰 committed
1940 1941
    __tablename__ = 'shyh_performance'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    perf_date = Column(Date, comment='数据日期')
    staff_no = Column(String(128), comment='员工工号')
    staff_name = Column(String(128), comment='员工姓名')
    staff_mobile_phone = Column(String(128), comment='手机号')
    staff_head_img = Column(String(256), comment='头像')
    staff_region = Column(String(128), comment='地域')
    branch_name = Column(String(128), comment='分行')
    sub_branch_name = Column(String(128), comment='支行')
    branch_network_name = Column(String(128), comment='网点')
    source_grade = Column(String(128), comment='当前等级')
    target_grade = Column(String(128), comment='评级分组')
    kpi_item1 = Column(DECIMAL(25, 10), comment='非公募代销销量')
    kpi_item1_rank = Column(INTEGER(10), comment='分区组内排名1')
    kpi_item1_wow = Column(INTEGER(10), comment='较上期1')
    kpi_item2 = Column(DECIMAL(25, 10), comment='公募基金销量')
    kpi_item2_rank = Column(INTEGER(10), comment='分区组内排名2')
    kpi_item2_wow = Column(INTEGER(10), comment='较上期2')
    kpi_item3 = Column(DECIMAL(25, 10), comment='保险销量')
    kpi_item3_rank = Column(INTEGER(10), comment='分区组内排名3')
    kpi_item3_wow = Column(INTEGER(10), comment='较上期3')
    kpi_item4 = Column(DECIMAL(25, 10), comment='财富管理类业务中收')
    kpi_item4_rank = Column(INTEGER(10), comment='分区组内排名4')
    kpi_item4_wow = Column(INTEGER(10), comment='较上期4')
    kpi_item5 = Column(DECIMAL(25, 10), comment='月日均100万元(含)以上客户净增')
    kpi_item5_rank = Column(INTEGER(10), comment='分区组内排名5')
    kpi_item5_wow = Column(INTEGER(10), comment='较上期5')
    kpi_item6 = Column(DECIMAL(25, 10), comment='信贷资产类销量')
    kpi_item6_rank = Column(INTEGER(10), comment='分区组内排名6')
    kpi_item6_wow = Column(INTEGER(10), comment='较上期6')
    kpi_item7 = Column(DECIMAL(25, 10), comment='存款销量')
    kpi_item7_rank = Column(INTEGER(10), comment='分区组内排名7')
    kpi_item7_wow = Column(INTEGER(10), comment='较上期7')
    kpi_item8 = Column(DECIMAL(25, 10), comment='信用卡新户')
    kpi_item8_rank = Column(INTEGER(10), comment='分区组内排名8')
    kpi_item8_wow = Column(INTEGER(10), comment='较上期8')
    kpi_item9 = Column(DECIMAL(25, 10), comment='新增社保卡')
    kpi_item9_rank = Column(INTEGER(10), comment='分区组内排名9')
    kpi_item9_wow = Column(INTEGER(10), comment='较上期9')
    score1 = Column(DECIMAL(12, 10), comment='销售业绩得分')
    score2 = Column(DECIMAL(12, 10), comment='价值贡献得分')
    score3 = Column(DECIMAL(12, 10), comment='综合贡献得分')
    add_score = Column(DECIMAL(12, 10), comment='奖励加分')
    subtract_score = Column(DECIMAL(12, 10), comment='惩罚减分')
    add_score_item1 = Column(DECIMAL(12, 10), comment='荣誉表彰')
    add_score_item2 = Column(DECIMAL(12, 10), comment='竞赛获奖')
    add_score_item3 = Column(DECIMAL(12, 10), comment='内训与带教')
    add_score_item4 = Column(DECIMAL(12, 10), comment='加分项4')
    add_score_item5 = Column(DECIMAL(12, 10), comment='加分项5')
    subtract_score_item1 = Column(DECIMAL(12, 10), comment='合规及反洗钱')
    subtract_score_item2 = Column(DECIMAL(12, 10), comment='销售资质持有')
    subtract_score_item3 = Column(DECIMAL(12, 10), comment='减分项3')
    subtract_score_item4 = Column(DECIMAL(12, 10), comment='减分项4')
    subtract_score_item5 = Column(DECIMAL(12, 10), comment='减分项5')
    grade_score = Column(DECIMAL(25, 10), comment='等级分')
    rank1 = Column(INTEGER(10), comment='全行排名')
    rank2 = Column(INTEGER(10), comment='分区组内排名')
    ratio2 = Column(DECIMAL(10, 9), comment='分区组内比')
    grade_desc = Column(String(128), comment='升降级')
    star = Column(INTEGER(10), comment='启明星合计')
    star_rank = Column(INTEGER(10), comment='启明星排名')
    star_item1 = Column(String(128), comment='启明星活动一')
    star_item2 = Column(String(128), comment='启明星活动二')
    star_item3 = Column(String(128), comment='启明星活动三')
    star_item4 = Column(String(128), comment='启明星活动四')
    star_item5 = Column(String(128), comment='启明星活动五')
    star_item6 = Column(String(128), comment='启明星活动六')
    star_item7 = Column(String(128), comment='启明星活动七')
    star_item8 = Column(String(128), comment='启明星活动八')
    star_item9 = Column(String(128), comment='启明星活动九')
    star_item10 = Column(String(128), comment='启明星活动十')
赵杰's avatar
赵杰 committed
2013 2014
    star_item1_name = Column(String(128))
    star_item2_name = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2015 2016 2017 2018 2019 2020
    cycleFlag = Column(String(128), comment='新的周期')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2021 2022 2023 2024 2025 2026 2027 2028 2029 2030
    star_item3_name = Column(String(128))
    star_item4_name = Column(String(128))
    star_item5_name = Column(String(128))
    star_item6_name = Column(String(128))
    star_item7_name = Column(String(128))
    star_item8_name = Column(String(128))
    star_item9_name = Column(String(128))
    star_item10_name = Column(String(128))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2031
class ShyhWeekPerformance(Base):
赵杰's avatar
赵杰 committed
2032 2033
    __tablename__ = 'shyh_week_performance'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    perf_date = Column(Date, comment='数据日期')
    staff_no = Column(String(128), comment='员工工号')
    staff_name = Column(String(128), comment='员工姓名')
    staff_mobile_phone = Column(String(128), comment='手机号')
    staff_head_img = Column(String(256), comment='头像')
    source_grade = Column(String(128), comment='当前等级')
    branch_name = Column(String(128), comment='分行')
    sub_branch_name = Column(String(128), comment='支行')
    branch_network_name = Column(String(128), comment='网点')
    kpi_item1 = Column(DECIMAL(25, 10), comment='非公募代销销量')
    kpi_item1_rank = Column(INTEGER(10), comment='分区组内排名1')
    kpi_item2 = Column(DECIMAL(25, 10), comment='公募基金销量')
    kpi_item2_rank = Column(INTEGER(10), comment='分区组内排名2')
    kpi_item3 = Column(DECIMAL(25, 10), comment='保险销量')
    kpi_item3_rank = Column(INTEGER(10), comment='分区组内排名3')
    kpi_item4 = Column(DECIMAL(25, 10), comment='财富管理类业务中收')
    kpi_item4_rank = Column(INTEGER(10), comment='分区组内排名4')
    kpi_item5 = Column(DECIMAL(25, 10), comment='月日均100万元(含)以上客户净增')
    kpi_item5_rank = Column(INTEGER(10), comment='分区组内排名5')
    kpi_item6 = Column(DECIMAL(25, 10), comment='信贷资产类销量')
    kpi_item6_rank = Column(INTEGER(10), comment='分区组内排名6')
    kpi_item7 = Column(DECIMAL(25, 10), comment='存款销量')
    kpi_item7_rank = Column(INTEGER(10), comment='分区组内排名7')
    kpi_item8 = Column(DECIMAL(25, 10), comment='信用卡新户')
    kpi_item8_rank = Column(INTEGER(10), comment='分区组内排名8')
    kpi_item9 = Column(DECIMAL(25, 10), comment='新增社保卡')
    kpi_item9_rank = Column(INTEGER(10), comment='分区组内排名9')
赵杰's avatar
赵杰 committed
2062
    cycleFlag = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2063 2064 2065 2066 2067
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2068 2069


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2070
class SkuInfo(Base):
赵杰's avatar
赵杰 committed
2071 2072
    __tablename__ = 'sku_info'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2073 2074 2075 2076 2077 2078 2079 2080 2081 2082
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    si_type = Column(String(3), comment='类型')
    si_name = Column(String(32), comment='规格名称')
    si_code = Column(String(16), comment='规格编码')
    si_pattern = Column(String(3), comment='定价模式')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2083 2084


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2085
class SkuPrice(Base):
赵杰's avatar
赵杰 committed
2086 2087
    __tablename__ = 'sku_price'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2088 2089 2090 2091 2092 2093
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    sp_type = Column(String(3), comment='类型 0:课程 1:报告 2:vip充值 3:账户充值')
    sp_id = Column(String(32), comment='产品ID')
    sp_si_id = Column(String(32), comment='规格ID')
    sp_price = Column(BIGINT(12), comment='普通会员价格')
    sp_vip_price = Column(BIGINT(12), comment='vip价格')
赵杰's avatar
赵杰 committed
2094
    sp_line_price = Column(BIGINT(12))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2095 2096 2097 2098 2099
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2100 2101


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2102
class Smsrecord(Base):
赵杰's avatar
赵杰 committed
2103 2104
    __tablename__ = 'smsrecord'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2105 2106 2107 2108 2109 2110 2111 2112 2113
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    leixing = Column(String(3), comment='类型')
    phone = Column(String(32), comment='手机号')
    content = Column(String(128), comment='内容')
    createby = Column(String(64), comment='创建人')
    createtime = Column(DateTime, comment='创建时间')
    updateby = Column(String(64), comment='修改人')
    updatetime = Column(DateTime, comment='修改时间')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2114 2115


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2116
class SubjectColumn(Base):
赵杰's avatar
赵杰 committed
2117 2118
    __tablename__ = 'subject_column'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    sc_name = Column(String(128), comment='名称')
    sc_type = Column(String(3), comment='类型')
    sc_thumbnail = Column(String(256), comment='缩略图')
    sc_backgroundimg = Column(String(256), comment='背景大图')
    sc_briefinfo = Column(String(512), comment='简介')
    sc_content_basenum = Column(BIGINT(10), comment='内容篇数虚拟数')
    sc_content_actualnum = Column(BIGINT(10), comment='内容篇数真实数')
    sc_follow_basenun = Column(BIGINT(10), comment='关注人数虚拟数')
    sc_follow_actualnum = Column(BIGINT(10), comment='关注人数真实数')
    sc_ishot = Column(String(3), comment='是否热门')
    sc_status = Column(String(3), comment='状态')
    sc_lastupdatetime = Column(DateTime, comment='最后更新时间')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class SubjectSelection(Base):
赵杰's avatar
赵杰 committed
2140 2141
    __tablename__ = 'subject_selection'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2142 2143 2144 2145 2146 2147 2148 2149 2150 2151
    id = Column(String(64), primary_key=True, comment='唯一主键')
    subject_id = Column(String(128), comment='专题id')
    selection_type = Column(INTEGER(64), comment='类型')
    selection_id = Column(String(64), comment='关联数据ID')
    selection_reason = Column(String(256), comment='入选理由')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2152 2153


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2154
class SysConstant(Base):
赵杰's avatar
赵杰 committed
2155 2156
    __tablename__ = 'sys_constant'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    constant_group = Column(String(64), comment='常量分组')
    constant_code = Column(String(64), comment='常量标识码')
    constant_name = Column(String(64), comment='常量名称')
    constant_value = Column(String(256), comment='常量值')
    constant_description = Column(String(128), comment='常量描述')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    cd_paixu = Column(INTEGER(3), comment='排序')
赵杰's avatar
赵杰 committed
2170 2171 2172
    cd_show = Column(INTEGER(3))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2173
class SysFunction(Base):
赵杰's avatar
赵杰 committed
2174 2175
    __tablename__ = 'sys_function'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2176 2177 2178 2179 2180 2181 2182 2183 2184 2185
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    function_name = Column(String(80), comment='功能名称')
    function_type = Column(INTEGER(128), comment='类别')
    is_check = Column(INTEGER(128), comment='是否验证权限')
    p_id = Column(String(64), comment='所属菜单Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2186 2187


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2188
class SysRole(Base):
赵杰's avatar
赵杰 committed
2189 2190
    __tablename__ = 'sys_role'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2191 2192 2193 2194 2195 2196 2197 2198 2199
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    role_name = Column(String(80), comment='角色名称')
    acl = Column(String(6000), comment='权限列表')
    org_id = Column(String(64), comment='机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2200 2201


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2202
class SysSwitch(Base):
赵杰's avatar
赵杰 committed
2203 2204
    __tablename__ = 'sys_switch'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    switch_group = Column(String(64), comment='开关分组')
    switch_code = Column(String(64), comment='开关标识码')
    switch_name = Column(String(64), comment='开关名称')
    switch_description = Column(String(128), comment='开关描述')
    switch_value = Column(String(64), comment='开关值')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class SysUser(Base):
赵杰's avatar
赵杰 committed
2220 2221
    __tablename__ = 'sys_user'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    user_name = Column(String(80), comment='用户姓名')
    user_account = Column(String(80), comment='账号')
    user_password = Column(String(80), comment='密码')
    user_state = Column(INTEGER(128), comment='用户状态')
    user_roles = Column(String(6000), comment='用户角色列表')
    org_id = Column(String(64), comment='机构Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    is_user = Column(String(3), comment='是否关联用户')
    department = Column(String(64), comment='所属部门')


class SystemNotice(Base):
赵杰's avatar
赵杰 committed
2239 2240
    __tablename__ = 'system_notice'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2241 2242 2243 2244 2245 2246 2247 2248 2249
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    sn_type = Column(String(64), comment='类型')
    sn_content = Column(String(512), comment='公告内容')
    sn_isshow = Column(String(3), comment='展示状态')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2250 2251 2252 2253


t_system_switch = Table(
    'system_switch', metadata,
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2254 2255
    Column('id', String(64), nullable=False, server_default=text("''"), comment='唯一主键'),
    Column('ss_name', String(64), comment='名称'),
赵杰's avatar
赵杰 committed
2256 2257
    Column('ss_key', String(64), comment='key'),
    Column('ss_value', String(64), comment='value'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2258 2259 2260 2261 2262 2263
    Column('ss_desc', String(256), comment='描述'),
    Column('createtime', DateTime, comment='创建时间'),
    Column('createby', String(64), comment='创建人'),
    Column('updatetime', DateTime, comment='修改时间'),
    Column('updateby', String(64), comment='修改人'),
    Column('deletetag', String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2264 2265 2266
)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2267
class Tag(Base):
赵杰's avatar
赵杰 committed
2268 2269
    __tablename__ = 'tag'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2270 2271 2272 2273 2274 2275 2276 2277 2278 2279
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    tag_name = Column(String(20), comment='标签名称')
    tag_category_id = Column(String(64), comment='所属类别')
    tag_remark = Column(String(128), comment='备注')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2280 2281


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2282
class TagCategory(Base):
赵杰's avatar
赵杰 committed
2283 2284
    __tablename__ = 'tag_category'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2285 2286 2287 2288 2289 2290 2291
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    category_name = Column(String(20), comment='类别名称')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2292 2293 2294 2295


t_tag_rel = Table(
    'tag_rel', metadata,
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2296 2297 2298 2299 2300 2301 2302
    Column('id', String(64), nullable=False, comment='主键id'),
    Column('tag_id', String(64), nullable=False, index=True, comment='标签id'),
    Column('rel_id', String(64), nullable=False, index=True, comment='关联id'),
    Column('rel_type', INTEGER(1), nullable=False, comment='关联类型'),
    Column('tag_category_id', String(64), nullable=False, comment='标签分类'),
    Column('tag_category_name', String(64), nullable=False, comment='标签分类'),
    Column('create_time', DateTime, nullable=False, comment='创建时间')
赵杰's avatar
赵杰 committed
2303 2304 2305
)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2306
class TaskSchedule(Base):
赵杰's avatar
赵杰 committed
2307 2308 2309
    __tablename__ = 'task_schedule'
    __table_args__ = (
        Index('activity_id_create_by', 'activity_id', 'create_by', unique=True),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2310
        {'comment': '任务进度表'}
赵杰's avatar
赵杰 committed
2311 2312 2313
    )

    id = Column(String(64, 'utf8mb4_unicode_ci'), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2314 2315
    activity_id = Column(String(64, 'utf8mb4_unicode_ci'), nullable=False, comment='活动id 其他id')
    create_by = Column(String(64, 'utf8mb4_unicode_ci'), nullable=False, comment='创建人')
赵杰's avatar
赵杰 committed
2316
    task_pro_send = Column(String(255, 'utf8mb4_unicode_ci'))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2317
    ext1 = Column(String(50, 'utf8mb4_unicode_ci'), comment='扩展字段')
赵杰's avatar
赵杰 committed
2318 2319
    create_time = Column(TIMESTAMP, nullable=False, server_default=text("CURRENT_TIMESTAMP"))
    update_time = Column(TIMESTAMP, nullable=False, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2320
    task_status = Column(INTEGER(3), nullable=False, server_default=text("'1'"), comment='1:进行中 2:通知完成')
赵杰's avatar
赵杰 committed
2321 2322 2323
    delete_tag = Column(INTEGER(3), nullable=False, server_default=text("'0'"))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2324
class Team(Base):
赵杰's avatar
赵杰 committed
2325 2326
    __tablename__ = 'team'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2327 2328 2329 2330 2331
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    team_name = Column(String(80), comment='团队名称')
    p_id = Column(String(64), comment='上级团队Id')
    full_path_id = Column(String(1024), comment='全路径')
    org_id = Column(String(64), comment='机构Id')
赵杰's avatar
赵杰 committed
2332
    full_path_name = Column(String(1024))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')
    team_category = Column(INTEGER(128), comment='团队类型')
    team_nature = Column(String(64), comment='团队业务性质')
    free_join_switch = Column(INTEGER(128), comment='自由加入开关')
    free_withdrawal_switch = Column(INTEGER(128), comment='自由退出开关')
    recruitment_switch = Column(INTEGER(128), comment='停止招募开关')
    closed_switch = Column(INTEGER(128), comment='停止运营开关')
    team_desc = Column(String(128), comment='邀请说明')
    content_reviewer = Column(Text, comment='内容审核者')


class TeamArticle(Base):
赵杰's avatar
赵杰 committed
2349 2350
    __tablename__ = 'team_article'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2351 2352 2353 2354
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    article_id = Column(String(64), comment='文章Id')
    team_id = Column(String(64), comment='团队Id')
    article_type = Column(INTEGER(11), comment='文章类型')
赵杰's avatar
赵杰 committed
2355
    org_id = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2356 2357 2358 2359 2360
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2361 2362


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2363
class TeamProduct(Base):
赵杰's avatar
赵杰 committed
2364 2365
    __tablename__ = 'team_product'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2366 2367 2368
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    product_id = Column(String(64), comment='产品Id')
    team_id = Column(String(64), comment='团队Id')
赵杰's avatar
赵杰 committed
2369
    org_id = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2370 2371 2372 2373 2374
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384


t_test = Table(
    'test', metadata,
    Column('id', INTEGER(11)),
    Column('createby', String(12)),
    Column('faid', String(12))
)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2385
class ThreadTask(Base):
赵杰's avatar
赵杰 committed
2386 2387
    __tablename__ = 'thread_task'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2388 2389 2390 2391 2392 2393 2394 2395 2396
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    task_name = Column(String(128), comment='任务名称')
    task_type = Column(String(3), comment='任务类型')
    task_status = Column(String(3), comment='任务状态')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2397 2398


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2399
class UbrFauser(Base):
赵杰's avatar
赵杰 committed
2400 2401
    __tablename__ = 'ubr_fauser'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2402 2403 2404 2405 2406 2407
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uf_uid = Column(String(64), comment='理财师ID')
    uf_uname = Column(String(32), comment='理财师姓名')
    uf_headimg = Column(String(256), comment='理财师头像')
    uf_shenfen = Column(String(3), comment='理财师身份')
    uf_grade = Column(String(64), comment='等级')
赵杰's avatar
赵杰 committed
2408 2409
    uf_target_grade = Column(String(256))
    us_bumen = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454
    uf_urcid = Column(String(64), comment='排名周期活动ID')
    uf_share_num = Column(BIGINT(8), comment='分享总次数')
    uf_browse_personnum = Column(BIGINT(8), comment='访客人数')
    uf_browse_num = Column(BIGINT(8), comment='访客浏览量')
    uf_forward_personnum = Column(BIGINT(8), comment='访客转发人数')
    uf_forward_num = Column(BIGINT(8), comment='访客转发量')
    uf_browse_visitors = Column(Text, comment='今日浏览的访客')
    uf_forward_visitors = Column(Text, comment='今日转发的访客')
    uf_article_share_num = Column(BIGINT(8), comment='文章分享总次数')
    uf_article_browse_personnum = Column(BIGINT(8), comment='文章访客人数')
    uf_article_browse_num = Column(BIGINT(8), comment='文章访客浏览量')
    uf_article_forward_personnum = Column(BIGINT(8), comment='文章访客转发人数')
    uf_article_forward_num = Column(BIGINT(8), comment='文章访客转发量')
    uf_article_browse_visitors = Column(Text, comment='今日文章浏览的访客')
    uf_article_forward_visitors = Column(Text, comment='今日文章转发的访客')
    uf_pro_share_num = Column(BIGINT(8), comment='产品分享总次数')
    uf_pro_browse_personnum = Column(BIGINT(8), comment='产品访客人数')
    uf_pro_browse_num = Column(BIGINT(8), comment='产品访客浏览量')
    uf_pro_forward_personnum = Column(BIGINT(8), comment='产品访客转发人数')
    uf_pro_forward_num = Column(BIGINT(8), comment='产品访客转发量')
    uf_pro_browse_visitors = Column(Text, comment='今日产品浏览的访客')
    uf_pro_forward_visitors = Column(Text, comment='今日产品转发的访客')
    uf_company_share_num = Column(BIGINT(8), comment='公司分享总次数')
    uf_company_browse_personnum = Column(BIGINT(8), comment='公司访客人数')
    uf_company_browse_num = Column(BIGINT(8), comment='公司访客浏览量')
    uf_company_forward_personnum = Column(BIGINT(8), comment='公司访客转发人数')
    uf_company_forward_num = Column(BIGINT(8), comment='公司访客转发量')
    uf_company_browse_visitors = Column(Text, comment='今日公司浏览的访客')
    uf_company_forward_visitors = Column(Text, comment='今日公司转发的访客')
    uf_mp_sharen_num = Column(BIGINT(8), comment='名片分享总次数')
    uf_mp_browse_personnum = Column(BIGINT(8), comment='名片访客人数')
    uf_mp_browse_num = Column(BIGINT(8), comment='名片访客浏览量')
    uf_mp_forward_personnum = Column(BIGINT(8), comment='名片访客转发人数')
    uf_mp_forward_num = Column(BIGINT(8), comment='名片访客转发量')
    uf_mp_browse_visitors = Column(Text, comment='今日名片浏览的访客')
    uf_mp_forward_visitors = Column(Text, comment='今日名片转发的访客')
    uf_article_tybg_share_num = Column(BIGINT(8), comment='文章分享总次数')
    uf_teamid = Column(String(1024), comment='团队')
    uf_date = Column(Date, comment='日期')
    uf_orgid = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474
    uf_article_ppxc_browse_personnum = Column(BIGINT(8))
    uf_article_ppxc_share_num = Column(BIGINT(8))
    uf_article_tybg_browse_personnum = Column(BIGINT(8))
    uf_article_browse_visitors_tybg = Column(Text)
    uf_article_browse_visitors_ppxc = Column(Text)
    uf_activity_share_num = Column(BIGINT(8))
    uf_activity_browse_personnum = Column(BIGINT(8))
    uf_activity_browse_visitors = Column(Text)
    uf_wq_num = Column(INTEGER(11))
    uf_huiwu_share_num = Column(BIGINT(8))
    uf_huiwu_browse_personnum = Column(BIGINT(20))
    uf_huiwu_browse_num = Column(BIGINT(20))
    uf_huiwu_forward_personnum = Column(BIGINT(20))
    uf_huiwu_forward_num = Column(BIGINT(20))
    uf_peixu_timelength = Column(BIGINT(20))
    uf_peixu_canyunum = Column(BIGINT(20))
    uf_peixu_baklooknum = Column(BIGINT(20))
    uf_peixu_ids = Column(Text)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2475
class UbrGrade(Base):
赵杰's avatar
赵杰 committed
2476 2477
    __tablename__ = 'ubr_grade'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2478 2479 2480 2481 2482 2483 2484 2485
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ug_name = Column(String(16), comment='等级')
    uf_orgid = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2486 2487


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2488
class UbrRankCycle(Base):
赵杰's avatar
赵杰 committed
2489 2490
    __tablename__ = 'ubr_rank_cycle'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    urc_name = Column(String(256), comment='名称')
    urc_starttime = Column(Date, comment='开始时间')
    urc_endtime = Column(Date, comment='结束时间')
    urc_status = Column(String(3), comment='状态')
    urc_range = Column(String(3), comment='统计对比范围')
    urc_content_type = Column(String(3), comment='活动内容类型')
    uf_orgid = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class UbrRankCycleDetail(Base):
赵杰's avatar
赵杰 committed
2507 2508
    __tablename__ = 'ubr_rank_cycle_detail'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2509 2510 2511 2512 2513 2514 2515 2516 2517 2518
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    urcd_urcid = Column(String(64), comment='排名周期活动ID')
    urcd_type = Column(String(3), comment='类型')
    urcd_refid = Column(String(64), comment='关联数据Id')
    urcd_title = Column(String(256), comment='标题')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2519 2520


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2521
class UbrSharesource(Base):
赵杰's avatar
赵杰 committed
2522 2523
    __tablename__ = 'ubr_sharesource'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2524
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
赵杰's avatar
赵杰 committed
2525 2526
    us_fausers_id = Column(String(64))
    us_uname = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2527
    us_urcid = Column(String(64), comment='排名周期活动ID')
赵杰's avatar
赵杰 committed
2528 2529
    us_shenfen = Column(String(32))
    us_bumen = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548
    us_type = Column(String(64), comment='资源类型')
    us_title = Column(String(256), comment='资源标题')
    us_refid = Column(String(64), comment='资源所属ID')
    us_share_personnum = Column(BIGINT(8), comment='分享人数')
    us_share_num = Column(BIGINT(8), comment='分享次数')
    us_browse_personnum = Column(BIGINT(8), comment='访问人数')
    us_browse_num = Column(BIGINT(8), comment='访问次数')
    us_forword_personnum = Column(BIGINT(8), comment='转发人数')
    us_forword_num = Column(BIGINT(8), comment='转发次数')
    us_date = Column(Date, comment='日期')
    us_orgid = Column(String(64), comment='机构ID')
    us_browse_visitors = Column(Text, comment='今日浏览的访客')
    us_forward_visitors = Column(Text, comment='今日转发的访客')
    us_share_fausers = Column(Text, comment='今日分享的理财师')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2549 2550 2551 2552 2553
    us_headimg = Column(String(256))
    us_grade = Column(String(64))
    us_target_grade = Column(String(256))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2554
class UserActivity(Base):
赵杰's avatar
赵杰 committed
2555 2556
    __tablename__ = 'user_activity'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2557 2558 2559 2560 2561 2562 2563 2564 2565
    id = Column(String(64), primary_key=True, comment='唯一主键')
    user_id = Column(String(64), comment='用户Id')
    activity_id = Column(String(64), comment='会务Id')
    org_id = Column(String(64), comment='机构Id')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2566 2567


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2568
class UserApplication(Base):
赵杰's avatar
赵杰 committed
2569 2570
    __tablename__ = 'user_application'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    username = Column(String(64), comment='姓名')
    mobile_phone = Column(String(64), comment='手机号')
    wechat_id = Column(String(64), comment='微信号')
    company_name = Column(String(128), comment='公司')
    photo = Column(String(1024), comment='照片')
    state = Column(INTEGER(3), comment='状态')
    reviewer = Column(String(64), comment='审核人')
    review_comment = Column(String(1024), comment='审核意见')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), index=True, comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    score = Column(INTEGER(3), server_default=text("'0'"), comment='得分')


class UserApplicationQuestion(Base):
赵杰's avatar
赵杰 committed
2589 2590
    __tablename__ = 'user_application_question'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    user_application_id = Column(String(64), comment='用户申请表Id')
    q_type = Column(String(3), comment='题目类型')
    q_title = Column(String(512), comment='题干')
    q_option = Column(String(1024), comment='选项')
    q_required = Column(INTEGER(3), comment='是否必填项')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), index=True, comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    template_id = Column(String(64), comment='模板id')
    score = Column(INTEGER(3), server_default=text("'0'"), comment='得分')
    answer = Column(String(255), comment='答案')


class UserAuth(Base):
赵杰's avatar
赵杰 committed
2608
    __tablename__ = 'user_auth'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2609
    __table_args__ = {'comment': '角色功能表'}
赵杰's avatar
赵杰 committed
2610 2611

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2612 2613 2614 2615
    ua_type = Column(String(16), nullable=False, comment='权限类型')
    ua_roles = Column(String(64), nullable=False, comment='需要角色(多选,eg:R1&S1)')
    ua_source_id = Column(String(64), nullable=False, comment='资源ID')
    ua_desc = Column(String(255), nullable=False, comment='描述')
赵杰's avatar
赵杰 committed
2616 2617 2618 2619 2620 2621 2622
    create_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP"))
    update_by = Column(String(64))
    update_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"))
    delete_tag = Column(INTEGER(3), nullable=False, server_default=text("'0'"))
    create_by = Column(String(64))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2623
class UserBehaviorRecord(Base):
赵杰's avatar
赵杰 committed
2624 2625 2626 2627 2628
    __tablename__ = 'user_behavior_record'
    __table_args__ = (
        Index('idx_routerurl_type', 'ubr_routerurl', 'ubr_type'),
    )

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ubr_type = Column(String(3), comment='类型')
    ubr_login_time = Column(DateTime, comment='登陆时间')
    ubr_logout_time = Column(DateTime, comment='登出时间')
    ubr_total_time = Column(BIGINT(8), comment='累计时长')
    ubr_last_time = Column(DateTime, comment='最后一次统计时间')
    ubr_source = Column(String(8), comment='访问来源')
    ubr_deviceid = Column(String(128), comment='设备唯一标识')
    ubr_channel = Column(String(128), index=True, comment='渠道')
    ubr_appversion = Column(String(16), comment='版本号')
    ubr_pid_deviceid = Column(String(128), comment='分享来源(设备ID)')
    ubr_pid_userid = Column(String(128), comment='分享来源(用户ID)')
    ubr_utype = Column(String(3), comment='用户类型')
    ubr_ushenfen = Column(String(3), comment='用户身份')
    fromto = Column(String(256), comment='上级链接')
    ubr_routerurl = Column(String(256), comment='路由链接')
    ubr_isshare = Column(String(3), comment='当前是否属于分享链接')
    ubr_ext1 = Column(String(128), comment='扩展字段1')
    ubr_ext2 = Column(String(128), index=True, comment='扩展字段2')
    ubr_ext3 = Column(String(128), comment='扩展字段3')
    ubr_ext4 = Column(String(128), comment='扩展4')
    ubr_ext5 = Column(String(128), comment='扩展5')
    ubr_ext6 = Column(String(128), comment='扩展6')
    ubr_ext7 = Column(String(128), comment='扩展7')
    ubr_ext8 = Column(String(128), comment='扩展8')
    ubr_ext9 = Column(String(128), comment='外拓经理ID')
    ubr_ext10 = Column(String(1024), comment='文章或产品标签')
赵杰's avatar
赵杰 committed
2656
    ubr_ext11 = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2657 2658 2659 2660
    ubr_browse_uuid = Column(String(128), comment='页面停留标识')
    ubr_uuid = Column(String(128), comment='资源ID')
    ubr_source_refid = Column(String(128), comment='资源所属')
    ubr_time_length = Column(BIGINT(8), comment='停留时长(秒)')
赵杰's avatar
赵杰 committed
2661
    ubr_openid = Column(String(128), comment='openid')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672
    ubr_user_links = Column(Text, comment='客户链路')
    ubr_share_source = Column(String(128), comment='分享去向标识')
    ubr_toxcx = Column(String(16), comment='进入小程序方式')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    ubr_team_id = Column(String(128), comment='团队Id')
    ubr_teamid = Column(String(128), comment='理财师所在团队ID')
    ubr_full_teamid = Column(String(128), comment='理财师所在团队全路径')
赵杰's avatar
赵杰 committed
2673 2674 2675
    ubr_time_process = Column(String(32))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2676
class UserChannel(Base):
赵杰's avatar
赵杰 committed
2677 2678
    __tablename__ = 'user_channel'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2679 2680 2681 2682 2683 2684 2685
    id = Column(String(64), primary_key=True, comment='唯一主键')
    channel_id = Column(String(64), comment='渠道id')
    channel_name = Column(String(256), comment='渠道名称')
    delete_tag = Column(INTEGER(1), comment='逻辑删除标志位')
    create_time = Column(DateTime, comment='渠道创建时间')
    update_time = Column(DateTime, comment='渠道名称更新时间')
    create_by = Column(String(64), comment='渠道创建人')
赵杰's avatar
赵杰 committed
2686 2687


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2688
class UserClock(Base):
赵杰's avatar
赵杰 committed
2689 2690
    __tablename__ = 'user_clock'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uc_type = Column(String(3), comment='类型')
    uc_status = Column(String(3), comment='客户状态')
    uc_memberno = Column(String(128), comment='会员号')
    uc_reason = Column(String(512), comment='事由')
    uc_address = Column(String(256), comment='地址')
    uc_lnt = Column(String(64), comment='精度')
    uc_lat = Column(String(64), comment='纬度')
    uc_time = Column(DateTime, comment='定位时间')
    org_id = Column(String(64), comment='机构ID')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class UserClueMessage(Base):
赵杰's avatar
赵杰 committed
2709 2710
    __tablename__ = 'user_clue_message'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ucm_userid = Column(String(64), comment='客户ID')
    ucm_content = Column(String(1024), comment='消息')
    ucm_timelength = Column(BIGINT(8), comment='阅读时长')
    ucm_source = Column(String(64), comment='来源')
    ucm_propagation_path = Column(Text, comment='传播路径')
    ucm_type = Column(String(3), comment='消息类型')
    ucm_read_status = Column(String(3), comment='阅读状态')
    ucm_who_send = Column(String(3), comment='消息发送方')
    ucm_faid = Column(String(64), comment='理财师ID')
    ucm_refid = Column(String(64), comment='关联数据ID')
    ucm_ubrid = Column(String(64), comment='关联行为记录id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    msg_body = Column(String(8000), comment='消息体')


class UserComment(Base):
赵杰's avatar
赵杰 committed
2732 2733
    __tablename__ = 'user_comment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uc_ref_id = Column(String(64), comment='所属ID')
    uc_category = Column(INTEGER(1), comment='类型')
    uc_content = Column(String(1024), comment='内容')
    uc_status = Column(INTEGER(128), comment='审核状态')
    uc_is_excellent = Column(INTEGER(128), comment='是否精选评论')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2745 2746


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2747
class UserCompany(Base):
赵杰's avatar
赵杰 committed
2748 2749
    __tablename__ = 'user_company'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2750 2751 2752 2753 2754
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uc_fileid = Column(String(64), comment='附件ID')
    uc_documentid = Column(String(64), comment='百度文档ID')
    uc_filename = Column(String(128), comment='文件名称')
    uc_watermark = Column(String(128), comment='水印')
赵杰's avatar
赵杰 committed
2755
    uc_logo = Column(String(128), comment='logo')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2756 2757 2758 2759 2760 2761 2762
    uc_name = Column(String(128), comment='公司名称')
    uc_telephone = Column(String(128), comment='公司电话')
    uc_address = Column(String(512), comment='公司地址')
    uc_info = Column(String(1024), comment='公司简介')
    uc_mien = Column(String(1024), comment='公司风采')
    org_id = Column(String(64), comment='机构Id')
    uc_show_type = Column(String(3), comment='内容展示类型 0:pdf 1:文字图片')
赵杰's avatar
赵杰 committed
2763
    uc_info_detail = Column(Text)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2764 2765 2766 2767 2768 2769
    uc_intro = Column(Text, comment='公司介绍')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
2770 2771


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2772
class UserCustomer(Base):
赵杰's avatar
赵杰 committed
2773 2774
    __tablename__ = 'user_customer'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2775
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
赵杰's avatar
赵杰 committed
2776
    uc_openid = Column(String(128), comment='openid\\n')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2777
    uc_source = Column(String(64), comment='来源')
赵杰's avatar
赵杰 committed
2778
    uc_unionid = Column(String(128), comment='unionId')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791
    uc_userid = Column(String(64), comment='用户id')
    uc_headimg = Column(String(256), comment='头像')
    uc_nickname = Column(String(32), comment='昵称')
    uc_name = Column(String(32), comment='姓名')
    uc_phone = Column(String(16), comment='手机号')
    uc_faid = Column(String(64), comment='理财师ID')
    org_id = Column(String(128), comment='机构')
    beizhu = Column(String(512), comment='备注')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2792
    uc_contact_time_isopen = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2793
    uc_contact_time = Column(String(128), comment='方便联系时间')
赵杰's avatar
赵杰 committed
2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808
    uc_hobby_isopen = Column(String(3))
    uc_hobby = Column(String(128))
    uc_marriage_isopen = Column(String(3))
    uc_marriage = Column(String(3))
    uc_native_isopen = Column(String(8))
    uc_native = Column(String(64))
    uc_position_isopen = Column(String(8))
    uc_position = Column(String(128))
    uc_work_isopen = Column(String(3))
    uc_work = Column(String(128))
    uc_adress_isopen = Column(String(3))
    uc_adress = Column(String(512))
    uc_email_isopen = Column(String(3))
    uc_email = Column(String(128))
    uc_birthday_isopen = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2809
    uc_birthday = Column(DateTime, comment='生日')
赵杰's avatar
赵杰 committed
2810 2811
    uc_sex_isopen = Column(String(3))
    uc_sex = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2812
    uc_status = Column(INTEGER(3), comment='客户状态')
赵杰's avatar
赵杰 committed
2813 2814


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2815
class UserCustomerProcessRecord(Base):
赵杰's avatar
赵杰 committed
2816 2817
    __tablename__ = 'user_customer_process_record'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    customer_visitorid = Column(String(64), comment='客户ID')
    customer_content = Column(String(512), comment='跟进内容')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(INTEGER(1), comment='删除标识')
    customer_status = Column(INTEGER(3), comment='客户状态')
    deal_pro_id = Column(String(64), comment='成交产品Id')
    deal_datetime = Column(DateTime, comment='成交时间')
赵杰's avatar
赵杰 committed
2829 2830


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2831
class UserEvaluate(Base):
赵杰's avatar
赵杰 committed
2832 2833
    __tablename__ = 'user_evaluate'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ue_name = Column(String(32), comment='客户姓名')
    ue_position = Column(String(32), comment='客户职位')
    ue_company = Column(String(128), comment='所在公司')
    ue_introduction = Column(String(512), comment='客户简介')
    ue_content = Column(String(1024), comment='评价内容')
    ue_type = Column(String(3), comment='评价类型')
    ue_invite_status = Column(String(3), comment='邀请状态')
    ue_show_status = Column(String(3), comment='展示状态')
    ue_top_status = Column(String(3), comment='置顶状态')
    ue_top_time = Column(DateTime, comment='置顶时间')
    ue_evaluator_id = Column(String(64), comment='评价人ID')
    ue_be_evaluator_id = Column(String(64), comment='被评价人')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class UserExam(Base):
赵杰's avatar
赵杰 committed
2855 2856
    __tablename__ = 'user_exam'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ex_id = Column(String(64), comment='试卷模版ID')
    ex_name = Column(String(256), comment='试卷名称')
    ex_starttime = Column(DateTime, comment='考试开始时间')
    ex_endtime = Column(DateTime, comment='考试结束时间')
    ex_totalscore = Column(INTEGER(5), comment='满分')
    ex_passscore = Column(INTEGER(5), comment='合格分')
    ex_done_examconid = Column(String(64), comment='当前题目进度')
    ex_resscore = Column(INTEGER(5), comment='试题得分')
    ex_status = Column(String(3), comment='答题状态')
    org_id = Column(String(64), comment='机构ID')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class UserExamContent(Base):
赵杰's avatar
赵杰 committed
2876 2877
    __tablename__ = 'user_exam_content'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ex_id = Column(String(64), comment='试卷模版ID')
    u_ex_id = Column(String(64), comment='用户试卷ID')
    ec_type = Column(String(3), comment='题目类型')
    ec_title = Column(String(512), comment='标题')
    ec_content = Column(String(1024), comment='内容选项')
    ec_right = Column(String(64), comment='正确答案')
    ec_score = Column(INTEGER(5), comment='题目分数')
    ec_answer = Column(String(64), comment='用户答案')
    ear_resscore = Column(INTEGER(5), comment='结果得分')
    org_id = Column(String(64), comment='机构ID')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class UserFinprore(Base):
赵杰's avatar
赵杰 committed
2897 2898
    __tablename__ = 'user_finprores'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2899 2900 2901 2902 2903 2904 2905 2906 2907
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    pro_id = Column(String(64), comment='产品ID')
    org_id = Column(String(64), comment='机构ID')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    is_recommend = Column(INTEGER(1), comment='首页展示')
赵杰's avatar
赵杰 committed
2908 2909 2910 2911
    team_id = Column(String(64))
    team_full_path = Column(String(1024))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2912
class UserImpressionLabel(Base):
赵杰's avatar
赵杰 committed
2913 2914
    __tablename__ = 'user_impression_label'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2915 2916 2917 2918 2919 2920 2921 2922
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uil_label_id = Column(String(64), comment='印象标签ID')
    uil_label = Column(String(64), comment='印象标签名称')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2923 2924


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2925
class UserImpressionLabelZan(Base):
赵杰's avatar
赵杰 committed
2926 2927
    __tablename__ = 'user_impression_label_zan'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2928 2929 2930 2931 2932 2933 2934 2935
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uil_label_id = Column(String(64), comment='用户所选印象标签ID')
    uil_faId = Column(String(64), comment='印象标签点赞记录')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2936 2937


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2938
class UserIndex(Base):
赵杰's avatar
赵杰 committed
2939 2940
    __tablename__ = 'user_index'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    fa_id = Column(String(64), comment='理财师Id')
    index_date = Column(Date, comment='日期')
    follow_index = Column(DECIMAL(6, 2), comment='关注指数')
    fission_index = Column(DECIMAL(6, 2), comment='裂变指数')
    visitor = Column(DECIMAL(6, 2), comment='获客指数')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
2952 2953


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2954
class UserInfo(Base):
赵杰's avatar
赵杰 committed
2955 2956
    __tablename__ = 'user_info'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2957 2958
    id = Column(VARCHAR(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ui_openid = Column(String(128), comment='微信openId')
赵杰's avatar
赵杰 committed
2959
    ui_unionId = Column(String(64), comment='unionId')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994
    ui_telphone = Column(String(16), comment='手机号')
    ui_pwd = Column(String(64), comment='登录密码')
    ui_nickname = Column(VARCHAR(64), comment='昵称')
    ui_headimg = Column(String(256), comment='头像')
    ui_username = Column(VARCHAR(64), comment='姓名')
    ui_sex = Column(String(3), comment='性别 0:男 1:女')
    ui_birthday = Column(DateTime, comment='生日')
    ui_introduction = Column(VARCHAR(256), comment='个人介绍')
    ui_type_mp = Column(String(3), comment='名片样式 0:小名片 1:大名片')
    ui_headimg_mp = Column(String(256), comment='名片头像')
    ui_username_mp = Column(VARCHAR(32), comment='名片姓名')
    ui_telphone_mp = Column(String(16), comment='名片电话')
    ui_mobilephone_mp = Column(String(16), comment='手机')
    ui_company_mp = Column(String(128), comment='名片公司名称')
    ui_company_address_mp = Column(String(128), comment='名片公司地址')
    ui_position_mp = Column(VARCHAR(128), comment='名片职位')
    ui_industry_mp = Column(String(128), comment='行业')
    ui_email_mp = Column(String(128), comment='名片邮箱')
    ui_introduction_mp = Column(VARCHAR(256), comment='名片个人介绍')
    ui_wechat_qrcode = Column(String(256), comment='微信个人二维码名片')
    ui_wechat_xcx_qrcode = Column(String(256), comment='小程序二维码')
    ui_type = Column(String(3), comment='类型 0:app注册 1:平台添加')
    ui_shenfen = Column(String(3), comment='用户身份 0:普通用户 1:种子用户 2:超级用户')
    ui_rzstatus = Column(INTEGER(3), comment='认证状态 0:未认证 1:已认证')
    org_id = Column(String(64), comment='机构Id')
    team_id = Column(String(64), comment='团队Id')
    join_time = Column(DateTime, comment='加入团队时间')
    staff_no = Column(VARCHAR(128), comment='员工工号')
    investor_certified_status = Column(INTEGER(128), comment='合格投资者认证状态')
    investor_certified_time = Column(DateTime, comment='合格投资者认证时间')
    to_partner = Column(String(3), comment='对外合作权限')
    ui_grade = Column(String(64), comment='等级')
    content_review = Column(INTEGER(1), comment='内容审核')
    ui_honor = Column(String(256), comment='所获荣誉')
    ui_hb_userid = Column(String(64), comment='海报扫码关注公众号引流人')
赵杰's avatar
赵杰 committed
2995 2996 2997 2998 2999 3000 3001
    staff_region = Column(String(128))
    branch_name = Column(String(128))
    sub_branch_name = Column(String(128))
    branch_network_name = Column(String(128))
    ui_grade_name = Column(String(128))
    ui_target_grade_name = Column(String(256))
    ui_source = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3002 3003 3004 3005 3006 3007 3008
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    front_roles = Column(String(128), comment='前端角色')
    ui_check_status = Column(INTEGER(3), comment='名片检查')
赵杰's avatar
赵杰 committed
3009 3010 3011 3012 3013 3014 3015 3016 3017
    city = Column(String(64))
    province = Column(String(64))
    country = Column(String(64))
    ui_inviter = Column(String(32))
    ui_inviter_phone = Column(String(32))
    ui_age = Column(INTEGER(3))
    ui_region = Column(String(128))
    ui_wecaht = Column(String(128))
    ui_inviter_time = Column(DateTime)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028
    unionid = Column(String(100), comment='微信unionId')
    level = Column(INTEGER(11), comment='0游客,1注册用户,2理财师')
    age = Column(INTEGER(11), comment='年龄')
    district = Column(String(64), comment='区县')
    address = Column(String(300), comment='详细地址')
    education = Column(INTEGER(11), comment='学历:0: 未知,1:专科,2:本科,3:211本科,4:硕士及以上')
    wechat = Column(String(60), comment='微信号')
    high_worth_customer_num = Column(INTEGER(11), comment='高净值客户数(0:无,1:10人一下,2:10-30人,3:30-50人,4:50以上)')
    customer_asset = Column(INTEGER(11), comment='高净值客户资产配置:(0:无,1:100万一下,2:100-200万,3:200-400万,4:400-600万,5:600万以上)')
    financial_planner = Column(INTEGER(1), comment='自身是否是理财师')
    vip_end_time = Column(DateTime, comment='会员到期时间')
赵杰's avatar
赵杰 committed
3029
    ui_register_time = Column(DateTime)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3030
    ui_auth = Column(String(256), comment='权限集 以英文;分割(S1-基础营)')
赵杰's avatar
赵杰 committed
3031
    ui_channel = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3032 3033 3034 3035
    review_time = Column(DateTime, comment='审核时间')
    ui_apple_userid = Column(String(256), comment='苹果授权用户id')
    ifa_no = Column(String(20), comment='理财师编号')
    realname = Column(String(32), comment='真实姓名,禁用于运营维护')
赵杰's avatar
赵杰 committed
3036 3037


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3038
class UserInfoExt(Base):
赵杰's avatar
赵杰 committed
3039 3040
    __tablename__ = 'user_info_ext'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3041 3042 3043 3044
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uie_userid = Column(String(64), comment='用户ID')
    uie_uselogo = Column(String(256), comment='用户当前使用的自定义logo')
    uie_uploadlogo = Column(String(256), comment='用户上传的自定义logo')
赵杰's avatar
赵杰 committed
3045
    uie_hbimg = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059
    ui_setting = Column(String(5120), comment='用户设置')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(INTEGER(1), comment='删除标识')
    ui_peixun_notice = Column(INTEGER(3), comment='培训角标通知')
    ui_huiwu_notice = Column(INTEGER(3), comment='会务角标通知')
    ui_pro_notice = Column(INTEGER(3), comment='产品角标通知')
    service_year = Column(INTEGER(3), comment='服务年限')
    service_personnum = Column(INTEGER(8), comment='服务人数')
    sales_share = Column(String(64), comment='销售份额')
    weshop_poster = Column(String(2048), comment='微店模版')
    weshop_poster_new = Column(Text, comment='微店模版(新版)')
赵杰's avatar
赵杰 committed
3060 3061 3062 3063


t_user_info_history = Table(
    'user_info_history', metadata,
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098
    Column('id', String(128), comment='唯一主键'),
    Column('ui_openid', String(128), comment='微信openId'),
    Column('ui_telphone', String(16), comment='手机号'),
    Column('ui_nickname', String(64), comment='昵称'),
    Column('ui_headimg', String(256), comment='头像'),
    Column('ui_username', String(64), comment='姓名'),
    Column('ui_sex', String(3), comment='性别'),
    Column('ui_birthday', DateTime, comment='生日'),
    Column('ui_introduction', String(256), comment='个人介绍'),
    Column('ui_type_mp', String(3), comment='名片样式'),
    Column('ui_headimg_mp', String(256), comment='名片头像'),
    Column('ui_username_mp', String(32), comment='名片姓名'),
    Column('ui_telphone_mp', String(16), comment='名片电话'),
    Column('ui_mobilephone_mp', String(16), comment='名片手机'),
    Column('ui_company_mp', String(128), comment='名片公司'),
    Column('ui_company_address_mp', String(128), comment='名片公司地址'),
    Column('ui_position_mp', String(128), comment='名片职位'),
    Column('ui_email_mp', String(128), comment='名片邮箱'),
    Column('ui_introduction_mp', String(256), comment='名片个人介绍'),
    Column('ui_wechat_qrcode', String(256), comment='微信个人二维码'),
    Column('ui_type', String(3), comment='类型'),
    Column('ui_shenfen', String(3), comment='用户身份'),
    Column('ui_rzstatus', INTEGER(3), comment='用户认证状态'),
    Column('org_id', String(64), comment='机构Id'),
    Column('team_id', String(64), comment='团队Id'),
    Column('join_time', DateTime, comment='加入团队时间'),
    Column('staff_no', String(128), comment='员工工号'),
    Column('investor_certified_status', INTEGER(1), comment='合格投资者认证状态'),
    Column('investor_certified_time', DateTime, comment='合格投资者认证时间'),
    Column('createtime', DateTime, comment='创建时间'),
    Column('createby', String(64), comment='创建人'),
    Column('updatetime', DateTime, comment='修改时间'),
    Column('updateby', String(64), comment='修改人'),
    Column('deletetag', String(3), comment='删除标识'),
    Column('version_time', DateTime, comment='版本时间')
赵杰's avatar
赵杰 committed
3099 3100 3101
)


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3102
class UserInvestorRz(Base):
赵杰's avatar
赵杰 committed
3103 3104
    __tablename__ = 'user_investor_rz'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uir_explain = Column(String(128), comment='说明')
    option_a = Column(String(128), comment='选项A')
    option_b = Column(String(128), comment='选项B')
    check_res = Column(String(128), comment='用户选择')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    investor_rz_id = Column(String(64), comment='模版ID')
赵杰's avatar
赵杰 committed
3116 3117


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3118
class UserLike(Base):
赵杰's avatar
赵杰 committed
3119 3120
    __tablename__ = 'user_like'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3121 3122 3123 3124 3125 3126 3127 3128 3129
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ul_ref_id = Column(String(64), comment='所属ID')
    ul_category = Column(INTEGER(1), comment='类型')
    ul_status = Column(INTEGER(1), comment='点赞状态')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
3130 3131


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3132
class UserLoginSign(Base):
赵杰's avatar
赵杰 committed
3133 3134
    __tablename__ = 'user_login_sign'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3135 3136 3137 3138 3139 3140 3141 3142 3143
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uls_sign = Column(String(128), comment='签名')
    uls_validity_time = Column(DateTime, comment='有效期')
    uls_status = Column(String(3), comment='使用状态')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3144 3145


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3146
class UserOperateLog(Base):
赵杰's avatar
赵杰 committed
3147 3148
    __tablename__ = 'user_operate_log'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3149 3150 3151 3152 3153
    id = Column(String(64), primary_key=True, comment='主键')
    operate_user_id = Column(String(64), nullable=False, comment='操作人id')
    operate_type = Column(INTEGER(11), nullable=False, comment='操作类型,根据业务定字典')
    pre_operate_info = Column(String(2000), comment='操作前信息')
    after_operate_info = Column(String(2000), comment='操作后信息')
赵杰's avatar
赵杰 committed
3154 3155
    create_time = Column(TIMESTAMP, nullable=False, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"))
    update_time = Column(TIMESTAMP, nullable=False, server_default=text("'0000-00-00 00:00:00'"))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3156
    status = Column(INTEGER(11), nullable=False, comment='状态,1待审核,2已完成,3已取消')
赵杰's avatar
赵杰 committed
3157 3158


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3159
class UserRecallRecord(Base):
赵杰's avatar
赵杰 committed
3160 3161 3162
    __tablename__ = 'user_recall_record'

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175
    user_id = Column(String(64), nullable=False, index=True, comment='用户id')
    wechat = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否加微信 0:否   1:是')
    wx_group = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否加微信群 0:否   1:是')
    recall = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否回访 0:否   1:是')
    remark = Column(String(255), comment='备注')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
    create_by = Column(String(64), nullable=False, comment='创建人')
    update_time = Column(DateTime, nullable=False, comment='更新时间')
    update_by = Column(String(64), nullable=False, comment='更新人')
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否删除')


class UserRecallRecordLog(Base):
赵杰's avatar
赵杰 committed
3176 3177 3178
    __tablename__ = 'user_recall_record_log'

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192
    user_id = Column(String(64), nullable=False, comment='用户id')
    wechat = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否加微信 0:否   1:是')
    wx_group = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否加微信群 0:否   1:是')
    recall = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否回访 0:否   1:是')
    remark = Column(String(255), comment='备注')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
    create_by = Column(String(64), nullable=False, comment='创建人')
    update_time = Column(DateTime, nullable=False, comment='更新时间')
    update_by = Column(String(64), nullable=False, comment='更新人')
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='是否删除')
    type = Column(INTEGER(11), nullable=False, comment='type:操作类型 1:是否加微信 2:是否加群 3:是否回访 4:加备注')


class UserRecommend(Base):
赵杰's avatar
赵杰 committed
3193 3194
    __tablename__ = 'user_recommend'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    fa_id = Column(String(64), comment='理财师Id')
    visitor_id = Column(String(64), comment='访客ID')
    index_date = Column(Date, comment='日期')
    browse_num = Column(BIGINT(8), comment='当天查看次数')
    browse_lastdata = Column(INTEGER(3), comment='是否当天查看过往数据')
    browse_thddays = Column(INTEGER(3), comment='是否连续查看3天')
    browse_day_timelength = Column(BIGINT(8), comment='当天查看时长')
    browse_cont_timelength = Column(BIGINT(8), comment='查看单个内容超过10秒个数')
    forword_num = Column(BIGINT(8), comment='内容被转发次数')
    forword_browsenum = Column(BIGINT(8), comment='被转发内容带来查看次数')
    click_imnnum = Column(BIGINT(8), comment='点击聊一聊次数')
    click_cont_mp_num = Column(BIGINT(8), comment='点击分享内容上的名片次数')
    grant_phone_num = Column(BIGINT(8), comment='授权手机号或连续方式次数')
    reason_num = Column(INTEGER(3), comment='推荐用户')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class UserRight(Base):
赵杰's avatar
赵杰 committed
3218 3219
    __tablename__ = 'user_rights'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ur_type = Column(String(3), comment='权益类型')
    ur_proid = Column(String(64), comment='产品ID')
    ur_limitation = Column(String(3), comment='时效类型')
    ur_limitation_starttime = Column(DateTime, comment='时效开始时间')
    ur_limitation_endtime = Column(DateTime, comment='时效结束时间')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3231 3232


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3233
class UserRightsDetail(Base):
赵杰's avatar
赵杰 committed
3234 3235
    __tablename__ = 'user_rights_detail'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    urd_rights_id = Column(String(64), comment='权益ID')
    urd_type = Column(String(3), comment='类型')
    urd_souce = Column(String(3), comment='获取方式 0:购买 1:活动获取')
    urd_refid = Column(String(64), comment='关联记录ID')
    urd_limitation = Column(String(3), comment='时效类型')
    urd_limitation_starttime = Column(DateTime, comment='时效开始时间')
    urd_limitation_endtime = Column(DateTime, comment='时效结束时间')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')


class UserRiskAssessment(Base):
赵杰's avatar
赵杰 committed
3252 3253
    __tablename__ = 'user_risk_assessment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    risk_id = Column(String(128), comment='风险评测ID')
    risk_name = Column(String(128), comment='测评名称')
    risk_description = Column(String(1024), comment='说明')
    risk_levels = Column(String(5120), comment='风险等级')
    risk_hight_score = Column(INTEGER(5), comment='测评最高分')
    risk_endtime = Column(DateTime, comment='风险评测有效期到期时间')
    user_total_score = Column(INTEGER(5), comment='用户总得分')
    user_risk_type = Column(String(64), comment='用户风险等级类型(关联常量表 分组:riskProType)')
    user_risk_hightrisk_levels = Column(String(64), comment='用户风险评级')
    user_low_risk = Column(String(3), comment='是否是低风险客户')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
    risk_expire = Column(INTEGER(3), comment='有效期(单位:月)')


class UserRiskAssessmentItem(Base):
赵杰's avatar
赵杰 committed
3275 3276
    __tablename__ = 'user_risk_assessment_item'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    risk_assess_id = Column(String(64), comment='用户风险测评记录ID')
    risk_group = Column(String(3), comment='分类(关联常量表 分组类别:riskAssType)')
    risk_item_type = Column(String(3), comment='类型')
    risk_item_stem = Column(String(512), comment='题干')
    risk_item_options = Column(String(5120), comment='选项')
    user_answer = Column(String(64), comment='用户答案')
    user_score = Column(INTEGER(5), comment='用户得分')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class UserRistRz(Base):
赵杰's avatar
赵杰 committed
3294 3295
    __tablename__ = 'user_rist_rz'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    urr_rz_phone = Column(String(64), comment='用户手机号认证')
    urr_rz_phone_date = Column(DateTime, comment='用户手机号认证时间')
    urr_rz_name = Column(String(32), comment='认证用户姓名')
    urr_rz_cert_type = Column(String(3), comment='身份信息认证-证件类型')
    urr_rz_cert_no = Column(String(64), comment='身份信息认证-证件号')
    urr_rz_cert_date = Column(DateTime, comment='身份信息认证时间')
    investor_certified_id = Column(String(64), comment='合格投资者认证关联用户记录')
    investor_certified_status = Column(INTEGER(1), comment='合格投资者认证状态')
    investor_certified_time = Column(DateTime, comment='合格投资者认证时间')
    investor_riskrz_id = Column(String(64), comment='风险测评认证关联用户记录')
    investor_riskrz_status = Column(INTEGER(1), comment='风险测评认证状态')
    investor_riskrz_time = Column(DateTime, comment='风险测评认证时间')
    expire_time = Column(DateTime, comment='测评到期时间')
    org_id = Column(String(128), comment='机构ID')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), index=True, comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(INTEGER(1), comment='删除标识')


class UserRole(Base):
赵杰's avatar
赵杰 committed
3319
    __tablename__ = 'user_role'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3320
    __table_args__ = {'comment': '数据权限'}
赵杰's avatar
赵杰 committed
3321 3322

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3323 3324 3325 3326 3327 3328 3329
    ur_code = Column(String(16), nullable=False, unique=True, comment='用户角色唯一编码')
    ur_coll = Column(String(64), nullable=False, comment='角色集合')
    ur_desc = Column(String(255), comment='角色集合描述')
    ur_name = Column(String(128), nullable=False, comment='用户角色描述(后台展示用)')
    ur_action = Column(String(64), nullable=False, comment='不满足当前权限要执行的动作')
    ur_action_desc = Column(String(128), nullable=False, comment='动作描述')
    ur_type = Column(INTEGER(3), nullable=False, comment='角色类型 0:功能角色 1:数据角色')
赵杰's avatar
赵杰 committed
3330 3331 3332 3333 3334 3335 3336
    create_by = Column(String(64), nullable=False)
    create_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP"))
    update_by = Column(String(64))
    update_time = Column(DateTime, nullable=False, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"))
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"))


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3337
class UserShield(Base):
赵杰's avatar
赵杰 committed
3338 3339
    __tablename__ = 'user_shield'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3340 3341 3342 3343 3344 3345 3346 3347 3348
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    iscontain_shield_user = Column(String(3), comment='是否包含屏蔽用户')
    shield_userid = Column(String(64), comment='屏蔽用户ID')
    org_id = Column(String(64), comment='机构ID')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3349 3350


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3351
class UserTalk(Base):
赵杰's avatar
赵杰 committed
3352 3353
    __tablename__ = 'user_talk'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3354 3355 3356 3357 3358 3359 3360 3361 3362 3363
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ut_content = Column(String(512), comment='内容')
    ut_paixu = Column(INTEGER(3), comment='排序')
    ut_type = Column(INTEGER(11), comment='类型 0:聊天自定义话术 1:文章插入产品自定义话术')
    org_id = Column(String(64), comment='机构Id')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3364 3365


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3366
class UserTeam(Base):
赵杰's avatar
赵杰 committed
3367 3368
    __tablename__ = 'user_team'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3369 3370 3371 3372 3373 3374 3375 3376 3377 3378
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    user_id = Column(String(64), comment='用户Id')
    team_id = Column(String(64), comment='团队Id')
    is_leader = Column(INTEGER(128), comment='是否为团队长')
    invited_by = Column(String(64), comment='邀请人Id')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
3379 3380


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3381
class UserTemplate(Base):
赵杰's avatar
赵杰 committed
3382 3383
    __tablename__ = 'user_template'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3384 3385 3386 3387 3388 3389 3390 3391
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ut_tem = Column(Text, comment='模块记录')
    ut_tem_del = Column(Text, comment='删除的模块')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3392 3393


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3394
class UserTemplate20190925(Base):
赵杰's avatar
赵杰 committed
3395 3396
    __tablename__ = 'user_template_20190925'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3397 3398 3399 3400 3401 3402 3403 3404
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ut_tem = Column(Text, comment='模块记录')
    ut_tem_del = Column(Text, comment='删除的模块')
    createtime = Column(DateTime, comment='创建时间')
    createby = Column(String(64), comment='创建人')
    updatetime = Column(DateTime, comment='修改时间')
    updateby = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3405 3406


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3407
class UserVisitorClue(Base):
赵杰's avatar
赵杰 committed
3408 3409
    __tablename__ = 'user_visitor_clue'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3410 3411 3412 3413 3414
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uc_userid = Column(String(64), comment='客户ID')
    uc_name = Column(String(32), comment='客户姓名')
    uc_headimg = Column(String(256), comment='客户头像')
    uc_phone = Column(String(32), comment='客户手机')
赵杰's avatar
赵杰 committed
3415
    uc_real_phone = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3416 3417 3418 3419 3420 3421 3422
    uc_msg_num = Column(INTEGER(6), comment='未读消息数')
    uc_recent_visit_time = Column(DateTime, comment='最近访问时间')
    uc_recent_visit_title = Column(String(256), comment='最近访问内容标题')
    uc_visit_lable = Column(String(128), comment='访问标签')
    uc_visit_content = Column(Text, comment='访问内容集合')
    uc_faid = Column(String(64), comment='理财师ID')
    uc_fission = Column(String(3), comment='一级好友标志0一级好友,1裂变好友')
赵杰's avatar
赵杰 committed
3423
    uc_ismycustomer = Column(INTEGER(5))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3424 3425 3426 3427 3428 3429
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    uc_visitor_category = Column(INTEGER(11), comment='访客类别,0普通,1重点加星客户')
赵杰's avatar
赵杰 committed
3430
    uc_recommend_val = Column(INTEGER(11), server_default=text("'11'"))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3431
    orgid = Column(String(64), comment='机构代码')
赵杰's avatar
赵杰 committed
3432
    user_source = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445
    first_room = Column(String(64), comment='第一次直播间Id')
    first_class_friend_room_id = Column(String(64), comment='成为一级好友的直播间Id')
    first_class_friend_time = Column(TIMESTAMP, comment='成为一级好友的时间')
    important_user_room_id = Column(String(128), comment='成为重点用户的直播间id')
    important_user_time = Column(TIMESTAMP, comment='成为重点用户的时间')
    collect_username = Column(String(64), comment=' 直播收集用户姓名')
    collect_phone = Column(String(16), comment='直播收集手机号')
    collect_isdone = Column(INTEGER(3), comment='直播是否收集过用户信息 0:否 1:是')
    collect_time = Column(DateTime, comment='直播收集用户信息时间')
    isconsult = Column(INTEGER(3), comment='是否咨询过理财师 0:否 1:是')


class UserWechat(Base):
赵杰's avatar
赵杰 committed
3446 3447
    __tablename__ = 'user_wechats'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3448 3449 3450 3451 3452 3453 3454
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    uw_wechatid = Column(String(64), comment='公众号记录ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
3455 3456


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3457
class UserWhitelist(Base):
赵杰's avatar
赵杰 committed
3458 3459
    __tablename__ = 'user_whitelist'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3460 3461 3462 3463 3464 3465 3466 3467
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    openid = Column(String(128), comment='用户openId')
    funcode = Column(String(256), comment='权限功能码')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
3468 3469


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3470
class VipUser(Base):
赵杰's avatar
赵杰 committed
3471 3472
    __tablename__ = 'vip_user'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    vp_name = Column(String(32), comment='用户姓名')
    vp_phone = Column(String(64), comment='手机号')
    vp_sex = Column(String(3), comment='用户性别')
    vp_birthday = Column(String(64), comment='用户生日')
    vp_city = Column(String(64), comment='所在城市')
    vp_isfa = Column(String(16), comment='是否是理财师')
    vp_level = Column(String(16), comment='等级')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')


class WxCpUser(Base):
赵杰's avatar
赵杰 committed
3489 3490
    __tablename__ = 'wx_cp_user'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3491 3492 3493 3494 3495 3496 3497 3498 3499 3500
    user_id = Column(String(128), primary_key=True, server_default=text("''"), comment='企业微信ID')
    user_name = Column(String(128), comment='姓名')
    department_id = Column(String(128), comment='营业部代码')
    department_name = Column(String(128), comment='营业部名称')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
3501 3502


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3503
class ZhiboAppointment(Base):
赵杰's avatar
赵杰 committed
3504 3505
    __tablename__ = 'zhibo_appointment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3506 3507 3508 3509 3510 3511 3512 3513
    id = Column(String(64), primary_key=True, comment='唯一主键')
    za_themeid = Column(String(64), comment='主题ID')
    za_userid = Column(String(64), comment='预约人')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
3514 3515


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3516
class ZhiboBlack(Base):
赵杰's avatar
赵杰 committed
3517 3518
    __tablename__ = 'zhibo_black'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3519 3520 3521 3522 3523 3524 3525 3526 3527 3528
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zb_user_id = Column(String(64), comment='用户id')
    zb_theme_id = Column(String(64), comment='主题ID')
    zb_room_num = Column(String(64), comment='直播房间号')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3529 3530


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3531
class ZhiboExam(Base):
赵杰's avatar
赵杰 committed
3532 3533
    __tablename__ = 'zhibo_exam'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544
    id = Column(String(64), primary_key=True, comment='唯一主键')
    ze_themeid = Column(String(64), comment='主题ID')
    ze_teaid = Column(String(64), comment='老师ID')
    ze_title = Column(String(128), comment='题目')
    ze_options = Column(String(2048), comment='选项')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3545 3546


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3547
class ZhiboExamAnswer(Base):
赵杰's avatar
赵杰 committed
3548 3549
    __tablename__ = 'zhibo_exam_answer'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zs_themeid = Column(String(64), comment='主题ID')
    zs_msg = Column(String(64), comment='消息ID')
    zs_userid = Column(String(64), comment='用户ID')
    zs_answer = Column(String(64), comment='选择答案')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3561 3562


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3563
class ZhiboFile(Base):
赵杰's avatar
赵杰 committed
3564 3565
    __tablename__ = 'zhibo_file'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zf_themeid = Column(String(32), comment='主题ID')
    zf_url = Column(String(32), comment='附件地址')
    zf_file_type = Column(String(3), comment='上传类型')
    zf_use = Column(String(3), comment='用途')
    zf_no = Column(INTEGER(3), comment='序号')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    org_id = Column(String(64), comment='机构ID')


class ZhiboHost(Base):
赵杰's avatar
赵杰 committed
3581 3582
    __tablename__ = 'zhibo_host'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3583 3584 3585 3586 3587 3588 3589 3590 3591
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zh_roomnum = Column(String(32), comment='直播房间号')
    zh_status = Column(String(3), comment='直播状态')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    zh_room_name = Column(String(64), comment='直播房间名称')
赵杰's avatar
赵杰 committed
3592 3593


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3594
class ZhiboManger(Base):
赵杰's avatar
赵杰 committed
3595 3596
    __tablename__ = 'zhibo_manger'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3597 3598 3599 3600
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zm_userid = Column(String(64), comment='管理员')
    zm_roomnum = Column(String(32), comment='直播房间号')
    zm_shenfen = Column(String(3), comment='管理员身份')
赵杰's avatar
赵杰 committed
3601 3602
    zm_paixu = Column(INTEGER(3))
    zm_username = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3603 3604 3605 3606 3607 3608 3609
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    org_id = Column(String(64), comment='机构ID')
    zm_teaid = Column(String(64), comment='讲师ID')
赵杰's avatar
赵杰 committed
3610 3611


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3612
class ZhiboMessage(Base):
赵杰's avatar
赵杰 committed
3613 3614
    __tablename__ = 'zhibo_message'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3615 3616
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zm_content = Column(String(1024), comment='消息')
赵杰's avatar
赵杰 committed
3617
    zm_themeid = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3618 3619 3620 3621 3622
    zm_serviceid = Column(String(128), comment='微信serviceId')
    zm_format = Column(String(3), comment='消息格式')
    zm_type = Column(String(3), comment='消息类型')
    zm_askid = Column(String(64), comment='提问消息ID')
    zm_roomnum = Column(String(32), comment='直播房间号')
赵杰's avatar
赵杰 committed
3623 3624 3625 3626 3627
    zm_audiotimelength = Column(INTEGER(11), server_default=text("'5'"))
    zm_timesplit = Column(String(3))
    zm_audiotext = Column(String(512))
    zm_status = Column(String(3))
    zm_recordtime = Column(DateTime)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3628 3629 3630 3631 3632 3633 3634
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    org_id = Column(String(64), comment='机构ID')
    highlighted = Column(INTEGER(3), comment='是否是重点')
赵杰's avatar
赵杰 committed
3635 3636


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3637
class ZhiboPhrase(Base):
赵杰's avatar
赵杰 committed
3638 3639
    __tablename__ = 'zhibo_phrase'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3640 3641 3642 3643 3644 3645 3646 3647 3648 3649
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zp_type = Column(String(64), comment='类型')
    zp_content = Column(String(1024), comment='内容')
    zp_sort_num = Column(INTEGER(11), comment='排序')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3650 3651


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3652
class ZhiboSign(Base):
赵杰's avatar
赵杰 committed
3653 3654
    __tablename__ = 'zhibo_sign'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zs_themeid = Column(String(64), comment='主题ID')
    zs_userid = Column(String(64), comment='签到人ID')
    zs_headimg = Column(String(256), comment='签到人头像')
    zs_uname = Column(String(64), comment='签到人姓名')
    org_id = Column(String(64), comment='机构ID')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
赵杰's avatar
赵杰 committed
3666 3667


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3668
class ZhiboTheme(Base):
赵杰's avatar
赵杰 committed
3669 3670
    __tablename__ = 'zhibo_theme'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3671 3672 3673 3674 3675
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zt_name = Column(String(32), comment='主题名称')
    zt_starttime = Column(DateTime, comment='开播时间,显示的开始时间')
    zt_endtime = Column(DateTime, comment='结束时间,显示的结束时间')
    zt_desc = Column(String(512), comment='描述,介绍')
赵杰's avatar
赵杰 committed
3676
    zt_roomnum = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    zt_status = Column(Text, comment='直播间状态')
    zt_backimg = Column(String(128), comment='直播背景图,封面')
    share_pattern = Column(INTEGER(3), comment='分享模式')
    zt_img = Column(String(128), comment='缩略图')
    zt_iszhibo = Column(String(3), comment='是否含直播')
    zt_proid = Column(String(64), comment='关联产品')
    zt_uname = Column(String(128), comment='培训人')
    zt_flag = Column(String(3), comment='参与人开放标识')
    org_id = Column(String(64), comment='机构ID')
    zt_password = Column(String(8), comment='密码')
    zt_label = Column(String(1024), comment='直播标签')
    zt_userids = Column(Text, comment='参与人')
    zt_mute = Column(String(3), comment='是否静音 0:否 1:是')
    zt_type = Column(String(64), comment='标签')
赵杰's avatar
赵杰 committed
3696 3697 3698 3699
    zt_appointment_nums = Column(INTEGER(8))
    zt_info = Column(Text)
    zt_qrcode = Column(String(256))
    zt_fuli = Column(Text)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3700
    zt_cardinal = Column(INTEGER(11), comment='直播基数')
赵杰's avatar
赵杰 committed
3701 3702


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3703
class ZhiboUser(Base):
赵杰's avatar
赵杰 committed
3704 3705
    __tablename__ = 'zhibo_users'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3706 3707 3708 3709
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zu_themdid = Column(String(32), comment='主题ID')
    zu_uid = Column(String(32), comment='组织或人员ID')
    zu_type = Column(String(3), comment='类型')
赵杰's avatar
赵杰 committed
3710
    zu_fullpath = Column(String(512))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3711 3712 3713 3714 3715 3716
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    deletetag = Column(String(3), comment='删除标识')
    org_id = Column(String(64), comment='机构ID')
赵杰's avatar
赵杰 committed
3717 3718


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3719
class Zidian(Base):
赵杰's avatar
赵杰 committed
3720 3721
    __tablename__ = 'zidian'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3722 3723 3724 3725 3726 3727 3728 3729 3730 3731
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zu = Column(String(64), comment='组')
    daima = Column(String(64), comment='代码')
    zhi = Column(String(64), comment='值')
    paixu = Column(INTEGER(4), comment='排序')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建人')
    update_time = Column(DateTime, comment='修改时间')
    update_by = Column(String(64), comment='修改人')
    delete_tag = Column(INTEGER(1), comment='删除标识')
赵杰's avatar
赵杰 committed
3732 3733


pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3734
class QrtzTrigger(Base):
赵杰's avatar
赵杰 committed
3735 3736 3737 3738
    __tablename__ = 'qrtz_triggers'
    __table_args__ = (
        ForeignKeyConstraint(['SCHED_NAME', 'JOB_NAME', 'JOB_GROUP'], ['qrtz_job_details.SCHED_NAME', 'qrtz_job_details.JOB_NAME', 'qrtz_job_details.JOB_GROUP']),
        Index('IDX_QRTZ_T_NFT_ST', 'SCHED_NAME', 'TRIGGER_STATE', 'NEXT_FIRE_TIME'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3739
        Index('IDX_QRTZ_T_JG', 'SCHED_NAME', 'JOB_GROUP'),
赵杰's avatar
赵杰 committed
3740 3741
        Index('IDX_QRTZ_T_J', 'SCHED_NAME', 'JOB_NAME', 'JOB_GROUP'),
        Index('IDX_QRTZ_T_N_STATE', 'SCHED_NAME', 'TRIGGER_NAME', 'TRIGGER_GROUP', 'TRIGGER_STATE'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3742 3743
        Index('IDX_QRTZ_T_STATE', 'SCHED_NAME', 'TRIGGER_STATE'),
        Index('IDX_QRTZ_T_NFT_ST_MISFIRE_GRP', 'SCHED_NAME', 'MISFIRE_INSTR', 'NEXT_FIRE_TIME', 'TRIGGER_GROUP', 'TRIGGER_STATE'),
赵杰's avatar
赵杰 committed
3744 3745
        Index('IDX_QRTZ_T_N_G_STATE', 'SCHED_NAME', 'TRIGGER_GROUP', 'TRIGGER_STATE'),
        Index('IDX_QRTZ_T_NFT_ST_MISFIRE', 'SCHED_NAME', 'MISFIRE_INSTR', 'NEXT_FIRE_TIME', 'TRIGGER_STATE'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3746 3747
        Index('IDX_QRTZ_T_NEXT_FIRE_TIME', 'SCHED_NAME', 'NEXT_FIRE_TIME'),
        Index('IDX_QRTZ_T_NFT_MISFIRE', 'SCHED_NAME', 'MISFIRE_INSTR', 'NEXT_FIRE_TIME'),
赵杰's avatar
赵杰 committed
3748
        Index('IDX_QRTZ_T_C', 'SCHED_NAME', 'CALENDAR_NAME'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3749
        Index('IDX_QRTZ_T_G', 'SCHED_NAME', 'TRIGGER_GROUP')
赵杰's avatar
赵杰 committed
3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831
    )

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    TRIGGER_NAME = Column(String(190), primary_key=True, nullable=False)
    TRIGGER_GROUP = Column(String(190), primary_key=True, nullable=False)
    JOB_NAME = Column(String(190), nullable=False)
    JOB_GROUP = Column(String(190), nullable=False)
    DESCRIPTION = Column(String(250))
    NEXT_FIRE_TIME = Column(BIGINT(13))
    PREV_FIRE_TIME = Column(BIGINT(13))
    PRIORITY = Column(INTEGER(11))
    TRIGGER_STATE = Column(String(16), nullable=False)
    TRIGGER_TYPE = Column(String(8), nullable=False)
    START_TIME = Column(BIGINT(13), nullable=False)
    END_TIME = Column(BIGINT(13))
    CALENDAR_NAME = Column(String(190))
    MISFIRE_INSTR = Column(SMALLINT(2))
    JOB_DATA = Column(LargeBinary)

    qrtz_job_detail = relationship('QrtzJobDetail')


class QrtzBlobTrigger(QrtzTrigger):
    __tablename__ = 'qrtz_blob_triggers'
    __table_args__ = (
        ForeignKeyConstraint(['SCHED_NAME', 'TRIGGER_NAME', 'TRIGGER_GROUP'], ['qrtz_triggers.SCHED_NAME', 'qrtz_triggers.TRIGGER_NAME', 'qrtz_triggers.TRIGGER_GROUP']),
        Index('SCHED_NAME', 'SCHED_NAME', 'TRIGGER_NAME', 'TRIGGER_GROUP')
    )

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    TRIGGER_NAME = Column(String(190), primary_key=True, nullable=False)
    TRIGGER_GROUP = Column(String(190), primary_key=True, nullable=False)
    BLOB_DATA = Column(LargeBinary)


class QrtzCronTrigger(QrtzTrigger):
    __tablename__ = 'qrtz_cron_triggers'
    __table_args__ = (
        ForeignKeyConstraint(['SCHED_NAME', 'TRIGGER_NAME', 'TRIGGER_GROUP'], ['qrtz_triggers.SCHED_NAME', 'qrtz_triggers.TRIGGER_NAME', 'qrtz_triggers.TRIGGER_GROUP']),
    )

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    TRIGGER_NAME = Column(String(190), primary_key=True, nullable=False)
    TRIGGER_GROUP = Column(String(190), primary_key=True, nullable=False)
    CRON_EXPRESSION = Column(String(120), nullable=False)
    TIME_ZONE_ID = Column(String(80))


class QrtzSimpleTrigger(QrtzTrigger):
    __tablename__ = 'qrtz_simple_triggers'
    __table_args__ = (
        ForeignKeyConstraint(['SCHED_NAME', 'TRIGGER_NAME', 'TRIGGER_GROUP'], ['qrtz_triggers.SCHED_NAME', 'qrtz_triggers.TRIGGER_NAME', 'qrtz_triggers.TRIGGER_GROUP']),
    )

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    TRIGGER_NAME = Column(String(190), primary_key=True, nullable=False)
    TRIGGER_GROUP = Column(String(190), primary_key=True, nullable=False)
    REPEAT_COUNT = Column(BIGINT(7), nullable=False)
    REPEAT_INTERVAL = Column(BIGINT(12), nullable=False)
    TIMES_TRIGGERED = Column(BIGINT(10), nullable=False)


class QrtzSimpropTrigger(QrtzTrigger):
    __tablename__ = 'qrtz_simprop_triggers'
    __table_args__ = (
        ForeignKeyConstraint(['SCHED_NAME', 'TRIGGER_NAME', 'TRIGGER_GROUP'], ['qrtz_triggers.SCHED_NAME', 'qrtz_triggers.TRIGGER_NAME', 'qrtz_triggers.TRIGGER_GROUP']),
    )

    SCHED_NAME = Column(String(120), primary_key=True, nullable=False)
    TRIGGER_NAME = Column(String(190), primary_key=True, nullable=False)
    TRIGGER_GROUP = Column(String(190), primary_key=True, nullable=False)
    STR_PROP_1 = Column(String(512))
    STR_PROP_2 = Column(String(512))
    STR_PROP_3 = Column(String(512))
    INT_PROP_1 = Column(INTEGER(11))
    INT_PROP_2 = Column(INTEGER(11))
    LONG_PROP_1 = Column(BIGINT(20))
    LONG_PROP_2 = Column(BIGINT(20))
    DEC_PROP_1 = Column(DECIMAL(13, 4))
    DEC_PROP_2 = Column(DECIMAL(13, 4))
    BOOL_PROP_1 = Column(String(1))
    BOOL_PROP_2 = Column(String(1))