tamp_user_models.py 187 KB
Newer Older
赵杰's avatar
赵杰 committed
1 2 3 4
# 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
赵杰's avatar
赵杰 committed
5
from app.model.base import Base, BaseModel, metadata
赵杰's avatar
赵杰 committed
6 7


8
class Account(Base, BaseModel):
赵杰's avatar
赵杰 committed
9 10
    __tablename__ = 'account'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
11 12 13 14 15 16 17
    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
18 19


20
class AccountAmount(Base, BaseModel):
赵杰's avatar
赵杰 committed
21 22
    __tablename__ = 'account_amount'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
23 24 25 26 27 28 29
    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
30 31


32
class AccountAmountChangerecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
33 34
    __tablename__ = 'account_amount_changerecord'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
    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='删除标识')


50
class AccountBill(Base, BaseModel):
赵杰's avatar
赵杰 committed
51 52
    __tablename__ = 'account_bill'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
    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='删除标识')


70
class AccountScore(Base, BaseModel):
赵杰's avatar
赵杰 committed
71 72
    __tablename__ = 'account_score'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
73 74 75 76 77 78 79
    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
80 81


82
class AccountScoreChangerecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
83 84
    __tablename__ = 'account_score_changerecord'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
85 86 87 88 89 90 91 92 93 94 95 96 97 98
    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='删除标识')


99
class Activity(Base, BaseModel):
赵杰's avatar
赵杰 committed
100 101
    __tablename__ = 'activity'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
    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
129
    at_detail_rich = Column(Text)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
130 131 132 133 134
    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
135 136


137
class ActivityBaoming(Base, BaseModel):
赵杰's avatar
赵杰 committed
138 139
    __tablename__ = 'activity_baoming'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
    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
160
    org_id = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
161 162 163
    status = Column(INTEGER(11), comment='审核状态')
    is_online = Column(INTEGER(11), comment='参与方式')
    ext_data = Column(String(255), comment='扩展')
赵杰's avatar
赵杰 committed
164 165


166
class ActivityCustomerFollow(Base, BaseModel):
赵杰's avatar
赵杰 committed
167 168
    __tablename__ = 'activity_customer_follow'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
169 170 171 172 173 174 175 176 177 178 179
    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
180 181


182
class AdditionalInfo(Base, BaseModel):
赵杰's avatar
赵杰 committed
183 184
    __tablename__ = 'additional_info'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
185 186 187 188 189 190 191 192 193 194
    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
195 196


197
class AdsPosition(Base, BaseModel):
赵杰's avatar
赵杰 committed
198 199
    __tablename__ = 'ads_position'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
    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='排序')


216
class AiScanResult(Base, BaseModel):
赵杰's avatar
赵杰 committed
217 218
    __tablename__ = 'ai_scan_result'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243
    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='删除标识')


244
class AiScanTask(Base, BaseModel):
赵杰's avatar
赵杰 committed
245 246
    __tablename__ = 'ai_scan_task'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
    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='删除标识')


262
class AppMessage(Base, BaseModel):
赵杰's avatar
赵杰 committed
263 264
    __tablename__ = 'app_message'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
265 266 267 268 269 270
    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
271
    remind_userid = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
272 273 274 275 276 277 278
    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
279 280


281
class AppVersion(Base, BaseModel):
赵杰's avatar
赵杰 committed
282
    __tablename__ = 'app_version'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
283
    __table_args__ = {'comment': 'App版本信息'}
赵杰's avatar
赵杰 committed
284 285

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
286 287 288 289 290 291 292 293 294 295 296 297
    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
298 299 300 301 302 303 304
    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)


305
class ApplicationTemplateQuestion(Base, BaseModel):
赵杰's avatar
赵杰 committed
306 307
    __tablename__ = 'application_template_question'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
308 309 310 311 312 313 314 315 316 317 318
    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
319 320


321
class ArLabel(Base, BaseModel):
赵杰's avatar
赵杰 committed
322 323
    __tablename__ = 'ar_labels'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
324 325 326 327 328 329 330 331
    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
332 333


334
class Article(Base, BaseModel):
赵杰's avatar
赵杰 committed
335 336
    __tablename__ = 'article'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
337 338 339 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
    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
379
    ar_plan_type = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
380 381 382 383 384 385 386 387 388 389 390 391 392
    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='关联产品')


393
class ArticlePushLabel(Base, BaseModel):
赵杰's avatar
赵杰 committed
394 395
    __tablename__ = 'article_push_label'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
396 397 398 399 400 401 402 403
    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
404 405


406
class Auth(Base, BaseModel):
赵杰's avatar
赵杰 committed
407
    __tablename__ = 'auth'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
408
    __table_args__ = {'comment': '权限定义表'}
赵杰's avatar
赵杰 committed
409 410

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
411 412 413 414 415 416 417
    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
418 419 420 421 422
    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
423
    priority = Column(INTEGER(11), nullable=False, server_default=text("'0'"), comment='优先级')
赵杰's avatar
赵杰 committed
424 425


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

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
431 432 433 434
    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
435 436 437 438 439 440 441
    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))


442
class AuthInformation(Base, BaseModel):
赵杰's avatar
赵杰 committed
443 444
    __tablename__ = 'auth_information'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464
    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='删除标识')


465
class AuthTask(Base, BaseModel):
赵杰's avatar
赵杰 committed
466
    __tablename__ = 'auth_task'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482
    __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:是')


483
class Banner(Base, BaseModel):
赵杰's avatar
赵杰 committed
484 485
    __tablename__ = 'banner'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
486 487 488 489 490 491 492 493 494 495
    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
496 497


498
class CompositeIndexLog(Base, BaseModel):
赵杰's avatar
赵杰 committed
499 500
    __tablename__ = 'composite_index_log'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515
    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='删除标识')


516
class ConstantDatum(Base, BaseModel):
赵杰's avatar
赵杰 committed
517 518
    __tablename__ = 'constant_data'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
519 520 521 522 523 524 525 526 527 528
    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
529 530


531
class CooperateCustomer(Base, BaseModel):
赵杰's avatar
赵杰 committed
532 533
    __tablename__ = 'cooperate_customer'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
534 535
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    cc_customer_id = Column(String(64), comment='客户id')
赵杰's avatar
赵杰 committed
536 537
    cc_customer_phone = Column(String(16))
    cc_customer_name = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
538 539 540 541 542 543 544
    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
545
    cc_articleid = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
546 547 548 549 550 551 552 553 554 555 556
    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='删除标识')


557
class CooperateCustomerProces(Base, BaseModel):
赵杰's avatar
赵杰 committed
558 559
    __tablename__ = 'cooperate_customer_process'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578
    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='删除标识')


579
class CooperateExistingCustomer(Base, BaseModel):
赵杰's avatar
赵杰 committed
580 581
    __tablename__ = 'cooperate_existing_customer'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
582 583 584 585 586 587 588 589 590 591 592
    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
593 594


595
class CooperatePartner(Base, BaseModel):
赵杰's avatar
赵杰 committed
596 597
    __tablename__ = 'cooperate_partner'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
598
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
赵杰's avatar
赵杰 committed
599
    cp_openid = Column(String(64), comment='openid')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
600 601 602 603 604 605 606 607 608 609 610 611 612 613
    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='删除标识')


614
class CooperatePlan(Base, BaseModel):
赵杰's avatar
赵杰 committed
615 616
    __tablename__ = 'cooperate_plan'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634
    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='删除标识')


635
class CooperateTeam(Base, BaseModel):
赵杰's avatar
赵杰 committed
636 637
    __tablename__ = 'cooperate_team'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
638 639 640 641 642 643 644 645 646
    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
647 648


649
class CrawlerConfigure(Base, BaseModel):
赵杰's avatar
赵杰 committed
650 651
    __tablename__ = 'crawler_configure'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
652 653 654 655 656 657 658 659 660 661 662 663
    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
664
    wechat_imgurl = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
665 666 667 668 669 670
    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
671 672 673
    wechat_desc = Column(String(1024))


674
class CrawlerLog(Base, BaseModel):
赵杰's avatar
赵杰 committed
675 676
    __tablename__ = 'crawler_log'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
677 678 679 680 681
    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
682 683


684
class CsFileRecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
685 686 687 688 689
    __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
690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709
    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='视频/音频时长')


710
class CurriculumChapter(Base, BaseModel):
赵杰's avatar
赵杰 committed
711 712
    __tablename__ = 'curriculum_chapter'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739
    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
740
    cc_desc = Column(String(1024))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
741 742 743 744 745 746 747 748 749 750 751 752
    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='阅读基数')


753
class CurriculumChapterFirstcatalog(Base, BaseModel):
赵杰's avatar
赵杰 committed
754 755
    __tablename__ = 'curriculum_chapter_firstcatalog'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
756 757 758 759 760 761 762 763 764 765 766
    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
767 768


769
class CurriculumColumn(Base, BaseModel):
赵杰's avatar
赵杰 committed
770
    __tablename__ = 'curriculum_column'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789
    __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='是否删除')


790
class CurriculumColumnRel(Base, BaseModel):
赵杰's avatar
赵杰 committed
791 792 793
    __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
794
        {'comment': '栏目关联表'}
赵杰's avatar
赵杰 committed
795 796
    )

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
797 798 799 800 801 802 803 804
    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
805 806


807
class CurriculumInfo(Base, BaseModel):
赵杰's avatar
赵杰 committed
808 809 810
    __tablename__ = 'curriculum_info'
    __table_args__ = {'comment': 'introduce_img'}

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
811 812 813 814 815 816 817
    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
818
    ci_teaid = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838
    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
839
    ci_smail_cover = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
840 841 842 843 844 845 846 847 848 849 850
    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
851 852 853 854 855 856 857
    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
858 859 860 861 862 863 864
    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
865 866


867
class CurriculumInquiryOrder(Base, BaseModel):
赵杰's avatar
赵杰 committed
868 869
    __tablename__ = 'curriculum_inquiry_order'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886
    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='删除标识')


887
class CurriculumOften(Base, BaseModel):
赵杰's avatar
赵杰 committed
888 889
    __tablename__ = 'curriculum_often'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
890 891 892 893 894 895 896 897
    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
898 899


900
class CurriculumPackage(Base, BaseModel):
赵杰's avatar
赵杰 committed
901
    __tablename__ = 'curriculum_package'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
902 903 904 905 906 907 908 909 910 911
    __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
912 913 914 915 916
    create_by = Column(String(50), nullable=False)
    update_time = Column(DateTime)
    delete_tag = Column(INTEGER(1), nullable=False)


917
class CurriculumPackageContent(Base, BaseModel):
赵杰's avatar
赵杰 committed
918 919 920
    __tablename__ = 'curriculum_package_content'

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
921 922 923 924
    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
925
    start_time = Column(DateTime)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
926 927
    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
928
    create_time = Column(DateTime, nullable=False)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
929
    create_by = Column(String(64), nullable=False, comment='创建人')
赵杰's avatar
赵杰 committed
930
    update_time = Column(DateTime, nullable=False)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
931 932
    delete_tag = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='删除状态')
    res_id = Column(String(64), comment='关联资源ID')
赵杰's avatar
赵杰 committed
933 934


935
class CurriculumPrice(Base, BaseModel):
赵杰's avatar
赵杰 committed
936
    __tablename__ = 'curriculum_price'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
937
    __table_args__ = {'comment': '定价表'}
赵杰's avatar
赵杰 committed
938 939

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956
    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='删除')


957
class CurriculumRel(Base, BaseModel):
赵杰's avatar
赵杰 committed
958 959 960 961 962
    __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
963 964 965 966 967 968 969
    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
970 971 972



973
class CurriculumSubject(Base, BaseModel):
赵杰's avatar
赵杰 committed
974 975
    __tablename__ = 'curriculum_subject'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993
    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='收听限制')


994
class CurriculumSubjectChapter(Base, BaseModel):
赵杰's avatar
赵杰 committed
995
    __tablename__ = 'curriculum_subject_chapter'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022
    __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='更新人')


1023
class CurriculumTeacher(Base, BaseModel):
赵杰's avatar
赵杰 committed
1024 1025
    __tablename__ = 'curriculum_teacher'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036
    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
1037 1038


1039
class DaySelection(Base, BaseModel):
赵杰's avatar
赵杰 committed
1040 1041
    __tablename__ = 'day_selection'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056
    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='删除标识')


1057
class DaySubject(Base, BaseModel):
赵杰's avatar
赵杰 committed
1058 1059
    __tablename__ = 'day_subject'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072
    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
1073
    base_browse_num = Column(INTEGER(5))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1074 1075 1076 1077 1078
    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
1079 1080


1081
class Exam(Base, BaseModel):
赵杰's avatar
赵杰 committed
1082 1083
    __tablename__ = 'exam'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098
    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='删除标识')


1099
class ExamContent(Base, BaseModel):
赵杰's avatar
赵杰 committed
1100 1101
    __tablename__ = 'exam_content'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116
    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='删除标识')


1117
class FinProRe(Base, BaseModel):
赵杰's avatar
赵杰 committed
1118 1119
    __tablename__ = 'fin_pro_res'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157
    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='募集量')


1158
class FriendArticle(Base, BaseModel):
赵杰's avatar
赵杰 committed
1159 1160
    __tablename__ = 'friend_article'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172
    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
1173
    openid = Column(String(128), comment='openid')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196
    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='驳回时间')


1197
class Func(Base, BaseModel):
赵杰's avatar
赵杰 committed
1198 1199
    __tablename__ = 'func'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213
    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='删除标识')


1214
class HomeRemmend(Base, BaseModel):
赵杰's avatar
赵杰 committed
1215 1216
    __tablename__ = 'home_remmend'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1217 1218 1219 1220 1221 1222 1223
    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
1224 1225


1226
class IfaWechatPoster(Base, BaseModel):
赵杰's avatar
赵杰 committed
1227 1228
    __tablename__ = 'ifa_wechat_poster'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1229 1230 1231 1232 1233 1234 1235
    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
1236 1237


1238
class IfaWechatStore(Base, BaseModel):
赵杰's avatar
赵杰 committed
1239
    __tablename__ = 'ifa_wechat_store'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1240
    __table_args__ = {'comment': '微店信息表'}
赵杰's avatar
赵杰 committed
1241

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1242
    id = Column(String(64), primary_key=True, comment='唯一主键')
赵杰's avatar
赵杰 committed
1243
    storename = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1244 1245 1246 1247 1248
    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
1249 1250


1251
class ImpressionLabel(Base, BaseModel):
赵杰's avatar
赵杰 committed
1252 1253
    __tablename__ = 'impression_label'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1254 1255 1256 1257 1258 1259 1260
    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
1261 1262


1263
class InvestorRz(Base, BaseModel):
赵杰's avatar
赵杰 committed
1264 1265
    __tablename__ = 'investor_rz'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281
    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='副标题')


1282
class OperateActivityNewyeardraw(Base, BaseModel):
赵杰's avatar
赵杰 committed
1283 1284
    __tablename__ = 'operate_activity_newyeardraw'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1285 1286 1287 1288 1289 1290
    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
1291
    oan_resimgurl = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1292 1293 1294 1295 1296
    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
1297 1298


1299
class Operation(Base, BaseModel):
赵杰's avatar
赵杰 committed
1300 1301
    __tablename__ = 'operation'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1302 1303 1304 1305 1306 1307 1308 1309 1310 1311
    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
1312 1313


1314
class OrderFlow(Base, BaseModel):
赵杰's avatar
赵杰 committed
1315 1316
    __tablename__ = 'order_flow'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342
    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')


1343
class Org(Base, BaseModel):
赵杰's avatar
赵杰 committed
1344 1345
    __tablename__ = 'org'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370
    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='删除标识')


1371
class PhotoLive(Base, BaseModel):
赵杰's avatar
赵杰 committed
1372 1373
    __tablename__ = 'photo_live'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392
    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='删除标识')


1393
class PhotoLiveExt(Base, BaseModel):
赵杰's avatar
赵杰 committed
1394 1395
    __tablename__ = 'photo_live_ext'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409
    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='删除标识')


1410
class PhotoLiveLike(Base, BaseModel):
赵杰's avatar
赵杰 committed
1411 1412
    __tablename__ = 'photo_live_like'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1413 1414 1415 1416 1417 1418 1419 1420 1421 1422
    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
1423 1424


1425
class ProReservation(Base, BaseModel):
赵杰's avatar
赵杰 committed
1426 1427
    __tablename__ = 'pro_reservation'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443
    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='删除标识')


1444
class ProblemFeedback(Base, BaseModel):
赵杰's avatar
赵杰 committed
1445 1446
    __tablename__ = 'problem_feedback'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1447 1448 1449 1450 1451 1452 1453 1454 1455
    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
1456 1457


1458
class QrtzCalendar(Base, BaseModel):
赵杰's avatar
赵杰 committed
1459 1460 1461 1462 1463 1464 1465
    __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)


1466
class QrtzFiredTrigger(Base, BaseModel):
赵杰's avatar
赵杰 committed
1467 1468 1469
    __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
1470 1471
        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
1472
        Index('IDX_QRTZ_FT_TG', 'SCHED_NAME', 'TRIGGER_GROUP'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1473 1474
        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
1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491
    )

    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))


1492
class QrtzJobDetail(Base, BaseModel):
赵杰's avatar
赵杰 committed
1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510
    __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)


1511
class QrtzLock(Base, BaseModel):
赵杰's avatar
赵杰 committed
1512 1513 1514 1515 1516 1517
    __tablename__ = 'qrtz_locks'

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


1518
class QrtzPausedTriggerGrp(Base, BaseModel):
赵杰's avatar
赵杰 committed
1519 1520 1521 1522 1523 1524
    __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)


1525
class QrtzSchedulerState(Base, BaseModel):
赵杰's avatar
赵杰 committed
1526 1527 1528 1529 1530 1531 1532 1533
    __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)


1534
class Quotation(Base, BaseModel):
赵杰's avatar
赵杰 committed
1535
    __tablename__ = 'quotations'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1536
    __table_args__ = {'comment': '每日金句'}
赵杰's avatar
赵杰 committed
1537 1538

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551
    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='预上架时间')


1552
class Rebroadcast(Base, BaseModel):
赵杰's avatar
赵杰 committed
1553 1554
    __tablename__ = 'rebroadcast'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568
    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='删除标识')


1569
class ReportActvolume(Base, BaseModel):
赵杰's avatar
赵杰 committed
1570 1571
    __tablename__ = 'report_actvolume'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592
    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='删除标识')


1593
class ReportCnReportform(Base, BaseModel):
赵杰's avatar
赵杰 committed
1594 1595
    __tablename__ = 'report_cn_reportform'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633
    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='删除标识')


1634
class ReportProAnalysi(Base, BaseModel):
赵杰's avatar
赵杰 committed
1635 1636
    __tablename__ = 'report_pro_analysis'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654
    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='删除标识')


1655
class ReportProInterest(Base, BaseModel):
赵杰's avatar
赵杰 committed
1656 1657
    __tablename__ = 'report_pro_interest'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668
    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
1669 1670


1671
class ReportTeamAnalysi(Base, BaseModel):
赵杰's avatar
赵杰 committed
1672 1673
    __tablename__ = 'report_team_analysis'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689
    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='删除标识')


1690
class Report(Base, BaseModel):
赵杰's avatar
赵杰 committed
1691 1692
    __tablename__ = 'reports'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
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
    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='删除标识')


1722
class RiskAssessment(Base, BaseModel):
赵杰's avatar
赵杰 committed
1723 1724
    __tablename__ = 'risk_assessment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741
    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='有效期(单位:月)')


1742
class RiskAssessmentItem(Base, BaseModel):
赵杰's avatar
赵杰 committed
1743 1744
    __tablename__ = 'risk_assessment_item'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758
    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='删除标识')


1759
class SensitiveWord(Base, BaseModel):
赵杰's avatar
赵杰 committed
1760 1761
    __tablename__ = 'sensitive_word'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1762 1763 1764 1765 1766 1767 1768 1769
    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
1770 1771


1772
class ShareCustom(Base, BaseModel):
赵杰's avatar
赵杰 committed
1773 1774
    __tablename__ = 'share_custom'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788
    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='删除标识')


1789
class SharePoster(Base, BaseModel):
赵杰's avatar
赵杰 committed
1790 1791
    __tablename__ = 'share_poster'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805
    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='海报状态')


1806
class ShyhMonthPerformance(Base, BaseModel):
赵杰's avatar
赵杰 committed
1807 1808
    __tablename__ = 'shyh_month_performance'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 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='唯一主键')
    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
1837
    cycleFlag = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1838 1839 1840 1841 1842
    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
1843 1844


1845
class ShyhPerformance(Base, BaseModel):
赵杰's avatar
赵杰 committed
1846 1847
    __tablename__ = 'shyh_performance'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918
    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
1919 1920
    star_item1_name = Column(String(128))
    star_item2_name = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1921 1922 1923 1924 1925 1926
    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
1927 1928 1929 1930 1931 1932 1933 1934 1935 1936
    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))


1937
class ShyhWeekPerformance(Base, BaseModel):
赵杰's avatar
赵杰 committed
1938 1939
    __tablename__ = 'shyh_week_performance'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1940 1941 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
    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
1968
    cycleFlag = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1969 1970 1971 1972 1973
    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
1974 1975


1976
class SkuInfo(Base, BaseModel):
赵杰's avatar
赵杰 committed
1977 1978
    __tablename__ = 'sku_info'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1979 1980 1981 1982 1983 1984 1985 1986 1987 1988
    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
1989 1990


1991
class SkuPrice(Base, BaseModel):
赵杰's avatar
赵杰 committed
1992 1993
    __tablename__ = 'sku_price'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1994 1995 1996 1997 1998 1999
    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
2000
    sp_line_price = Column(BIGINT(12))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2001 2002 2003 2004 2005
    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
2006 2007


2008
class Smsrecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
2009 2010
    __tablename__ = 'smsrecord'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2011 2012 2013 2014 2015 2016 2017 2018 2019
    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
2020 2021


2022
class SubjectColumn(Base, BaseModel):
赵杰's avatar
赵杰 committed
2023 2024
    __tablename__ = 'subject_column'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044
    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='删除标识')


2045
class SubjectSelection(Base, BaseModel):
赵杰's avatar
赵杰 committed
2046 2047
    __tablename__ = 'subject_selection'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2048 2049 2050 2051 2052 2053 2054 2055 2056 2057
    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
2058 2059


2060
class SysConstant(Base, BaseModel):
赵杰's avatar
赵杰 committed
2061 2062
    __tablename__ = 'sys_constant'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075
    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
2076 2077 2078
    cd_show = Column(INTEGER(3))


2079
class SysFunction(Base, BaseModel):
赵杰's avatar
赵杰 committed
2080 2081
    __tablename__ = 'sys_function'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2082 2083 2084 2085 2086 2087 2088 2089 2090 2091
    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
2092 2093


2094
class SysRole(Base, BaseModel):
赵杰's avatar
赵杰 committed
2095 2096
    __tablename__ = 'sys_role'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2097 2098 2099 2100 2101 2102 2103 2104 2105
    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
2106 2107


2108
class SysSwitch(Base, BaseModel):
赵杰's avatar
赵杰 committed
2109 2110
    __tablename__ = 'sys_switch'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124
    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='删除标识')


2125
class SysUser(Base, BaseModel):
赵杰's avatar
赵杰 committed
2126 2127
    __tablename__ = 'sys_user'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143
    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='所属部门')


2144
class SystemNotice(Base, BaseModel):
赵杰's avatar
赵杰 committed
2145 2146
    __tablename__ = 'system_notice'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2147 2148 2149 2150 2151 2152 2153 2154 2155
    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
2156 2157


2158
class Tag(Base, BaseModel):
赵杰's avatar
赵杰 committed
2159 2160
    __tablename__ = 'tag'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2161 2162 2163 2164 2165 2166 2167 2168 2169 2170
    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
2171 2172


2173
class TagCategory(Base, BaseModel):
赵杰's avatar
赵杰 committed
2174 2175
    __tablename__ = 'tag_category'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2176 2177 2178 2179 2180 2181 2182
    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
2183 2184


2185
class TaskSchedule(Base, BaseModel):
赵杰's avatar
赵杰 committed
2186 2187 2188
    __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
2189
        {'comment': '任务进度表'}
赵杰's avatar
赵杰 committed
2190 2191 2192
    )

    id = Column(String(64, 'utf8mb4_unicode_ci'), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2193 2194
    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
2195
    task_pro_send = Column(String(255, 'utf8mb4_unicode_ci'))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2196
    ext1 = Column(String(50, 'utf8mb4_unicode_ci'), comment='扩展字段')
赵杰's avatar
赵杰 committed
2197 2198
    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
2199
    task_status = Column(INTEGER(3), nullable=False, server_default=text("'1'"), comment='1:进行中 2:通知完成')
赵杰's avatar
赵杰 committed
2200 2201 2202
    delete_tag = Column(INTEGER(3), nullable=False, server_default=text("'0'"))


2203
class Team(Base, BaseModel):
赵杰's avatar
赵杰 committed
2204 2205
    __tablename__ = 'team'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2206 2207 2208 2209 2210
    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
2211
    full_path_name = Column(String(1024))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226
    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='内容审核者')


2227
class TeamArticle(Base, BaseModel):
赵杰's avatar
赵杰 committed
2228 2229
    __tablename__ = 'team_article'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2230 2231 2232 2233
    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
2234
    org_id = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2235 2236 2237 2238 2239
    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
2240 2241


2242
class TeamProduct(Base, BaseModel):
赵杰's avatar
赵杰 committed
2243 2244
    __tablename__ = 'team_product'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2245 2246 2247
    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
2248
    org_id = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2249 2250 2251 2252 2253
    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
2254 2255 2256 2257 2258 2259 2260 2261 2262 2263


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


2264
class ThreadTask(Base, BaseModel):
赵杰's avatar
赵杰 committed
2265 2266
    __tablename__ = 'thread_task'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2267 2268 2269 2270 2271 2272 2273 2274 2275
    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
2276 2277


2278
class UbrFauser(Base, BaseModel):
赵杰's avatar
赵杰 committed
2279 2280
    __tablename__ = 'ubr_fauser'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2281 2282 2283 2284 2285 2286
    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
2287 2288
    uf_target_grade = Column(String(256))
    us_bumen = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333
    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
2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353
    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)


2354
class UbrGrade(Base, BaseModel):
赵杰's avatar
赵杰 committed
2355 2356
    __tablename__ = 'ubr_grade'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2357 2358 2359 2360 2361 2362 2363 2364
    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
2365 2366


2367
class UbrRankCycle(Base, BaseModel):
赵杰's avatar
赵杰 committed
2368 2369
    __tablename__ = 'ubr_rank_cycle'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384
    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='删除标识')


2385
class UbrRankCycleDetail(Base, BaseModel):
赵杰's avatar
赵杰 committed
2386 2387
    __tablename__ = 'ubr_rank_cycle_detail'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2388 2389 2390 2391 2392 2393 2394 2395 2396 2397
    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
2398 2399


2400
class UbrSharesource(Base, BaseModel):
赵杰's avatar
赵杰 committed
2401 2402
    __tablename__ = 'ubr_sharesource'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2403
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
赵杰's avatar
赵杰 committed
2404 2405
    us_fausers_id = Column(String(64))
    us_uname = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2406
    us_urcid = Column(String(64), comment='排名周期活动ID')
赵杰's avatar
赵杰 committed
2407 2408
    us_shenfen = Column(String(32))
    us_bumen = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427
    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
2428 2429 2430 2431 2432
    us_headimg = Column(String(256))
    us_grade = Column(String(64))
    us_target_grade = Column(String(256))


2433
class UserActivity(Base, BaseModel):
赵杰's avatar
赵杰 committed
2434 2435
    __tablename__ = 'user_activity'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2436 2437 2438 2439 2440 2441 2442 2443 2444
    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
2445 2446


2447
class UserApplication(Base, BaseModel):
赵杰's avatar
赵杰 committed
2448 2449
    __tablename__ = 'user_application'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466
    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='得分')


2467
class UserApplicationQuestion(Base, BaseModel):
赵杰's avatar
赵杰 committed
2468 2469
    __tablename__ = 'user_application_question'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485
    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='答案')


2486
class UserAuth(Base, BaseModel):
赵杰's avatar
赵杰 committed
2487
    __tablename__ = 'user_auth'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2488
    __table_args__ = {'comment': '角色功能表'}
赵杰's avatar
赵杰 committed
2489 2490

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2491 2492 2493 2494
    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
2495 2496 2497 2498 2499 2500 2501
    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))


2502
class UserBehaviorRecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
2503 2504 2505 2506 2507
    __tablename__ = 'user_behavior_record'
    __table_args__ = (
        Index('idx_routerurl_type', 'ubr_routerurl', 'ubr_type'),
    )

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534
    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
2535
    ubr_ext11 = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2536 2537 2538 2539
    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
2540
    ubr_openid = Column(String(128), comment='openid')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551
    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
2552 2553 2554
    ubr_time_process = Column(String(32))


2555
class UserChannel(Base, BaseModel):
赵杰's avatar
赵杰 committed
2556 2557
    __tablename__ = 'user_channel'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2558 2559 2560 2561 2562 2563 2564
    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
2565 2566


2567
class UserClock(Base, BaseModel):
赵杰's avatar
赵杰 committed
2568 2569
    __tablename__ = 'user_clock'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586
    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='删除标识')


2587
class UserClueMessage(Base, BaseModel):
赵杰's avatar
赵杰 committed
2588 2589
    __tablename__ = 'user_clue_message'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609
    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='消息体')


2610
class UserComment(Base, BaseModel):
赵杰's avatar
赵杰 committed
2611 2612
    __tablename__ = 'user_comment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623
    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
2624 2625


2626
class UserCompany(Base, BaseModel):
赵杰's avatar
赵杰 committed
2627 2628
    __tablename__ = 'user_company'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2629 2630 2631 2632 2633
    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
2634
    uc_logo = Column(String(128), comment='logo')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2635 2636 2637 2638 2639 2640 2641
    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
2642
    uc_info_detail = Column(Text)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2643 2644 2645 2646 2647 2648
    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
2649 2650


2651
class UserCustomer(Base, BaseModel):
赵杰's avatar
赵杰 committed
2652 2653
    __tablename__ = 'user_customer'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2654
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
赵杰's avatar
赵杰 committed
2655
    uc_openid = Column(String(128), comment='openid\\n')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2656
    uc_source = Column(String(64), comment='来源')
赵杰's avatar
赵杰 committed
2657
    uc_unionid = Column(String(128), comment='unionId')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670
    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
2671
    uc_contact_time_isopen = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2672
    uc_contact_time = Column(String(128), comment='方便联系时间')
赵杰's avatar
赵杰 committed
2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687
    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
2688
    uc_birthday = Column(DateTime, comment='生日')
赵杰's avatar
赵杰 committed
2689 2690
    uc_sex_isopen = Column(String(3))
    uc_sex = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2691
    uc_status = Column(INTEGER(3), comment='客户状态')
赵杰's avatar
赵杰 committed
2692 2693


2694
class UserCustomerProcessRecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
2695 2696
    __tablename__ = 'user_customer_process_record'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707
    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
2708 2709


2710
class UserEvaluate(Base, BaseModel):
赵杰's avatar
赵杰 committed
2711 2712
    __tablename__ = 'user_evaluate'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732
    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='删除标识')


2733
class UserExam(Base, BaseModel):
赵杰's avatar
赵杰 committed
2734 2735
    __tablename__ = 'user_exam'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753
    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='删除标识')


2754
class UserExamContent(Base, BaseModel):
赵杰's avatar
赵杰 committed
2755 2756
    __tablename__ = 'user_exam_content'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774
    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='删除标识')


2775
class UserFinprore(Base, BaseModel):
赵杰's avatar
赵杰 committed
2776 2777
    __tablename__ = 'user_finprores'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2778 2779 2780 2781 2782 2783 2784 2785 2786
    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
2787 2788 2789 2790
    team_id = Column(String(64))
    team_full_path = Column(String(1024))


2791
class UserImpressionLabel(Base, BaseModel):
赵杰's avatar
赵杰 committed
2792 2793
    __tablename__ = 'user_impression_label'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2794 2795 2796 2797 2798 2799 2800 2801
    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
2802 2803


2804
class UserImpressionLabelZan(Base, BaseModel):
赵杰's avatar
赵杰 committed
2805 2806
    __tablename__ = 'user_impression_label_zan'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2807 2808 2809 2810 2811 2812 2813 2814
    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
2815 2816


2817
class UserIndex(Base, BaseModel):
赵杰's avatar
赵杰 committed
2818 2819
    __tablename__ = 'user_index'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830
    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
2831 2832


2833
class UserInfo(Base, BaseModel):
赵杰's avatar
赵杰 committed
2834 2835
    __tablename__ = 'user_info'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2836 2837
    id = Column(VARCHAR(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ui_openid = Column(String(128), comment='微信openId')
赵杰's avatar
赵杰 committed
2838
    ui_unionId = Column(String(64), comment='unionId')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873
    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
2874 2875 2876 2877 2878 2879 2880
    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
2881 2882 2883 2884 2885 2886 2887
    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
2888 2889 2890 2891 2892 2893 2894 2895 2896
    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
2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907
    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
2908
    ui_register_time = Column(DateTime)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2909
    ui_auth = Column(String(256), comment='权限集 以英文;分割(S1-基础营)')
赵杰's avatar
赵杰 committed
2910
    ui_channel = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2911 2912 2913 2914
    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
2915 2916


2917
class UserInfoExt(Base, BaseModel):
赵杰's avatar
赵杰 committed
2918 2919
    __tablename__ = 'user_info_ext'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2920 2921 2922 2923
    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
2924
    uie_hbimg = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938
    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
2939 2940 2941 2942


t_user_info_history = Table(
    'user_info_history', metadata,
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977
    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
2978 2979 2980
)


2981
class UserInvestorRz(Base, BaseModel):
赵杰's avatar
赵杰 committed
2982 2983
    __tablename__ = 'user_investor_rz'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994
    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
2995 2996


2997
class UserLike(Base, BaseModel):
赵杰's avatar
赵杰 committed
2998 2999
    __tablename__ = 'user_like'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3000 3001 3002 3003 3004 3005 3006 3007 3008
    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
3009 3010


3011
class UserLoginSign(Base, BaseModel):
赵杰's avatar
赵杰 committed
3012 3013
    __tablename__ = 'user_login_sign'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3014 3015 3016 3017 3018 3019 3020 3021 3022
    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
3023 3024


3025
class UserOperateLog(Base, BaseModel):
赵杰's avatar
赵杰 committed
3026 3027
    __tablename__ = 'user_operate_log'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3028 3029 3030 3031 3032
    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
3033 3034
    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
3035
    status = Column(INTEGER(11), nullable=False, comment='状态,1待审核,2已完成,3已取消')
赵杰's avatar
赵杰 committed
3036 3037


3038
class UserRecallRecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
3039 3040 3041
    __tablename__ = 'user_recall_record'

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053
    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='是否删除')


3054
class UserRecallRecordLog(Base, BaseModel):
赵杰's avatar
赵杰 committed
3055 3056 3057
    __tablename__ = 'user_recall_record_log'

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070
    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:加备注')


3071
class UserRecommend(Base, BaseModel):
赵杰's avatar
赵杰 committed
3072 3073
    __tablename__ = 'user_recommend'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095
    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='删除标识')


3096
class UserRight(Base, BaseModel):
赵杰's avatar
赵杰 committed
3097 3098
    __tablename__ = 'user_rights'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109
    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
3110 3111


3112
class UserRightsDetail(Base, BaseModel):
赵杰's avatar
赵杰 committed
3113 3114
    __tablename__ = 'user_rights_detail'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129
    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='删除标识')


3130
class UserRiskAssessment(Base, BaseModel):
赵杰's avatar
赵杰 committed
3131 3132
    __tablename__ = 'user_risk_assessment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152
    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='有效期(单位:月)')


3153
class UserRiskAssessmentItem(Base, BaseModel):
赵杰's avatar
赵杰 committed
3154 3155
    __tablename__ = 'user_risk_assessment_item'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171
    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='删除标识')


3172
class UserRistRz(Base, BaseModel):
赵杰's avatar
赵杰 committed
3173 3174
    __tablename__ = 'user_rist_rz'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196
    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='删除标识')


3197
class UserRole(Base, BaseModel):
赵杰's avatar
赵杰 committed
3198
    __tablename__ = 'user_role'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3199
    __table_args__ = {'comment': '数据权限'}
赵杰's avatar
赵杰 committed
3200 3201

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3202 3203 3204 3205 3206 3207 3208
    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
3209 3210 3211 3212 3213 3214 3215
    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'"))


3216
class UserShield(Base, BaseModel):
赵杰's avatar
赵杰 committed
3217 3218
    __tablename__ = 'user_shield'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3219 3220 3221 3222 3223 3224 3225 3226 3227
    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
3228 3229


3230
class UserTalk(Base, BaseModel):
赵杰's avatar
赵杰 committed
3231 3232
    __tablename__ = 'user_talk'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3233 3234 3235 3236 3237 3238 3239 3240 3241 3242
    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
3243 3244


3245
class UserTeam(Base, BaseModel):
赵杰's avatar
赵杰 committed
3246 3247
    __tablename__ = 'user_team'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3248 3249 3250 3251 3252 3253 3254 3255 3256 3257
    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
3258 3259


3260
class UserTemplate(Base, BaseModel):
赵杰's avatar
赵杰 committed
3261 3262
    __tablename__ = 'user_template'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3263 3264 3265 3266 3267 3268 3269 3270
    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
3271 3272


3273
class UserTemplate20190925(Base, BaseModel):
赵杰's avatar
赵杰 committed
3274 3275
    __tablename__ = 'user_template_20190925'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3276 3277 3278 3279 3280 3281 3282 3283
    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
3284 3285


3286
class UserVisitorClue(Base, BaseModel):
赵杰's avatar
赵杰 committed
3287 3288
    __tablename__ = 'user_visitor_clue'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3289 3290 3291 3292 3293
    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
3294
    uc_real_phone = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3295 3296 3297 3298 3299 3300 3301
    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
3302
    uc_ismycustomer = Column(INTEGER(5))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3303 3304 3305 3306 3307 3308
    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
3309
    uc_recommend_val = Column(INTEGER(11), server_default=text("'11'"))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3310
    orgid = Column(String(64), comment='机构代码')
赵杰's avatar
赵杰 committed
3311
    user_source = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323
    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:是')


3324
class UserWechat(Base, BaseModel):
赵杰's avatar
赵杰 committed
3325 3326
    __tablename__ = 'user_wechats'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3327 3328 3329 3330 3331 3332 3333
    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
3334 3335


3336
class UserWhitelist(Base, BaseModel):
赵杰's avatar
赵杰 committed
3337 3338
    __tablename__ = 'user_whitelist'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3339 3340 3341 3342 3343 3344 3345 3346
    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
3347 3348


3349
class VipUser(Base, BaseModel):
赵杰's avatar
赵杰 committed
3350 3351
    __tablename__ = 'vip_user'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366
    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='删除标识')


3367
class WxCpUser(Base, BaseModel):
赵杰's avatar
赵杰 committed
3368 3369
    __tablename__ = 'wx_cp_user'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3370 3371 3372 3373 3374 3375 3376 3377 3378 3379
    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
3380 3381


3382
class ZhiboAppointment(Base, BaseModel):
赵杰's avatar
赵杰 committed
3383 3384
    __tablename__ = 'zhibo_appointment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3385 3386 3387 3388 3389 3390 3391 3392
    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
3393 3394


3395
class ZhiboBlack(Base, BaseModel):
赵杰's avatar
赵杰 committed
3396 3397
    __tablename__ = 'zhibo_black'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3398 3399 3400 3401 3402 3403 3404 3405 3406 3407
    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
3408 3409


3410
class ZhiboExam(Base, BaseModel):
赵杰's avatar
赵杰 committed
3411 3412
    __tablename__ = 'zhibo_exam'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423
    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
3424 3425


3426
class ZhiboExamAnswer(Base, BaseModel):
赵杰's avatar
赵杰 committed
3427 3428
    __tablename__ = 'zhibo_exam_answer'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439
    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
3440 3441


3442
class ZhiboFile(Base, BaseModel):
赵杰's avatar
赵杰 committed
3443 3444
    __tablename__ = 'zhibo_file'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458
    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')


3459
class ZhiboHost(Base, BaseModel):
赵杰's avatar
赵杰 committed
3460 3461
    __tablename__ = 'zhibo_host'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3462 3463 3464 3465 3466 3467 3468 3469 3470
    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
3471 3472


3473
class ZhiboManger(Base, BaseModel):
赵杰's avatar
赵杰 committed
3474 3475
    __tablename__ = 'zhibo_manger'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3476 3477 3478 3479
    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
3480 3481
    zm_paixu = Column(INTEGER(3))
    zm_username = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3482 3483 3484 3485 3486 3487 3488
    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
3489 3490


3491
class ZhiboMessage(Base, BaseModel):
赵杰's avatar
赵杰 committed
3492 3493
    __tablename__ = 'zhibo_message'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3494 3495
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zm_content = Column(String(1024), comment='消息')
赵杰's avatar
赵杰 committed
3496
    zm_themeid = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3497 3498 3499 3500 3501
    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
3502 3503 3504 3505 3506
    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
3507 3508 3509 3510 3511 3512 3513
    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
3514 3515


3516
class ZhiboPhrase(Base, BaseModel):
赵杰's avatar
赵杰 committed
3517 3518
    __tablename__ = 'zhibo_phrase'

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='唯一主键')
    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
3529 3530


3531
class ZhiboSign(Base, BaseModel):
赵杰's avatar
赵杰 committed
3532 3533
    __tablename__ = 'zhibo_sign'

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='唯一主键')
    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
3545 3546


3547
class ZhiboTheme(Base, BaseModel):
赵杰's avatar
赵杰 committed
3548 3549
    __tablename__ = 'zhibo_theme'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3550 3551 3552 3553 3554
    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
3555
    zt_roomnum = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574
    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
3575 3576 3577 3578
    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
3579
    zt_cardinal = Column(INTEGER(11), comment='直播基数')
赵杰's avatar
赵杰 committed
3580 3581


3582
class ZhiboUser(Base, BaseModel):
赵杰's avatar
赵杰 committed
3583 3584
    __tablename__ = 'zhibo_users'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3585 3586 3587 3588
    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
3589
    zu_fullpath = Column(String(512))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3590 3591 3592 3593 3594 3595
    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
3596 3597


3598
class Zidian(Base, BaseModel):
赵杰's avatar
赵杰 committed
3599 3600
    __tablename__ = 'zidian'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3601 3602 3603 3604 3605 3606 3607 3608 3609 3610
    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
3611 3612


3613
class QrtzTrigger(Base, BaseModel):
赵杰's avatar
赵杰 committed
3614 3615 3616 3617
    __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
3618
        Index('IDX_QRTZ_T_JG', 'SCHED_NAME', 'JOB_GROUP'),
赵杰's avatar
赵杰 committed
3619 3620
        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
3621 3622
        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
3623 3624
        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
3625 3626
        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
3627
        Index('IDX_QRTZ_T_C', 'SCHED_NAME', 'CALENDAR_NAME'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3628
        Index('IDX_QRTZ_T_G', 'SCHED_NAME', 'TRIGGER_GROUP')
赵杰's avatar
赵杰 committed
3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710
    )

    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))