tamp_user_models.py 190 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
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
5
from sqlalchemy.ext.declarative import declarative_base
赵杰's avatar
赵杰 committed
6
from app.model.base import Base, BaseModel
赵杰's avatar
赵杰 committed
7 8


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

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


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

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


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

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


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

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


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

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


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

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


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

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
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 129
    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
130
    at_detail_rich = Column(Text)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
131 132 133 134 135
    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
136 137


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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


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

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
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 740
    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
741
    cc_desc = Column(String(1024))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
742 743 744 745 746 747 748 749 750 751 752 753
    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='阅读基数')


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

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


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


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

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


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

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


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

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


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

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


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


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

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


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

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


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


973
class CurriculumRe(Base, BaseModel):
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
974 975
    __tablename__ = 'curriculum_res'
    __table_args__ = {'comment': '课程资源'}
赵杰's avatar
赵杰 committed
976

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999
    id = Column(String(64), primary_key=True, comment='主键id')
    title = Column(String(50), nullable=False, comment='课程名称')
    audio = Column(String(128), comment='课程音视频')
    audio_type = Column(INTEGER(1), comment='音频类型')
    teacher_id = Column(String(64), comment='讲师id')
    teacher_name = Column(String(128), comment='讲师姓名')
    content = Column(MEDIUMTEXT, comment='文稿内容')
    duration = Column(INTEGER(11), comment='时长')
    file_size = Column(INTEGER(11), comment='文件大小KB')
    org_id = Column(String(64), index=True, comment='组织id')
    room_pwd = Column(String(50), comment='房间密码')
    create_by = Column(String(64), nullable=False, comment='创建人')
    create_time = Column(DateTime, nullable=False, comment='创建时间')
    update_by = Column(String(64), comment='更新人')
    update_time = Column(DateTime, comment='更新时间')
    delete_tag = Column(INTEGER(1), nullable=False, comment='删除标识')
    read_num = Column(INTEGER(11), server_default=text("'0'"), comment='阅读数')
    read_base_num = Column(INTEGER(11), server_default=text("'0'"), comment='阅读基础数')
    status = Column(INTEGER(1), nullable=False, server_default=text("'0'"), comment='状态')
    sort = Column(INTEGER(11), nullable=False, server_default=text("'0'"), comment='排序')
    info = Column(String(255), server_default=text("''"), comment='简介')
    cover = Column(String(255), nullable=False, server_default=text("''"), comment='封面')

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


1015
class CurriculumSubject(Base, BaseModel):
赵杰's avatar
赵杰 committed
1016 1017
    __tablename__ = 'curriculum_subject'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035
    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='收听限制')


1036
class CurriculumSubjectChapter(Base, BaseModel):
赵杰's avatar
赵杰 committed
1037
    __tablename__ = 'curriculum_subject_chapter'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064
    __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='更新人')


1065
class CurriculumTeacher(Base, BaseModel):
赵杰's avatar
赵杰 committed
1066 1067
    __tablename__ = 'curriculum_teacher'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078
    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
1079 1080


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


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


1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119
class CustomerInfo(Base, BaseModel):
    __tablename__ = 'customer_info'
    __table_args__ = {'comment': '客户表'}
    id =  Column(String(64), nullable=False, comment='主键')
    customer_name = Column(String(50), server_default=text("''"), comment='客户姓名')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), server_default=text("''"), comment='创建人')
    update_time = Column(DateTime, comment='更新时间')
    update_by = Column(String(64), comment='更新人')
    delete_tag = Column(INTEGER(1), server_default=text("'0'"), comment='删除标识')


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


1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165
class CustomerOrder(Base, BaseModel):
    __tablename__ = 'customer_order'
    __table_args__ = {'comment': '客户订单'}
    id = Column(String(64), nullable=False, comment='主键id')
    user_id = Column(String(64), server_default=text("''"), comment='理财师id')
    customer_id = Column(String(64), server_default=text("''"), comment='客户id')
    folio_name = Column(VARCHAR(64), server_default=text("'default'"), comment='组合名称,默认default,可以单用户多组合')
    fund_id = Column(String(64), server_default=text("''"), comment='产品id')
    order_type = Column(INTEGER(1), comment='1:申购  2:赎回')
    pay_date = Column(Date, comment='打款日期')
    subscription_fee = Column(DECIMAL(22, 6), comment='申购费')
    confirm_share_date = Column(Date, comment='份额确认日期')
    confirm_share = Column(DECIMAL(22, 6), comment='确认份额')
    confirm_amount = Column(DECIMAL(22, 6), comment='确认金额')
    nav = Column(DECIMAL(22, 6), comment='净值')
    remark = Column(String(255), comment='备注')
    create_time = Column(DateTime, comment='创建时间')
    create_by = Column(String(64), comment='创建时间')
    update_time = Column(DateTime, comment='更新时间')
    update_by = Column(String(64), comment='更新人')


class DaySelection(Base, BaseModel):
赵杰's avatar
赵杰 committed
1166 1167
    __tablename__ = 'day_selection'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182
    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='删除标识')


1183
class DaySubject(Base, BaseModel):
赵杰's avatar
赵杰 committed
1184 1185
    __tablename__ = 'day_subject'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198
    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
1199
    base_browse_num = Column(INTEGER(5))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1200 1201 1202 1203 1204
    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
1205 1206


1207
class Exam(Base, BaseModel):
赵杰's avatar
赵杰 committed
1208 1209
    __tablename__ = 'exam'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224
    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='删除标识')


1225
class ExamContent(Base, BaseModel):
赵杰's avatar
赵杰 committed
1226 1227
    __tablename__ = 'exam_content'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
    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='删除标识')


1243
class FinProRe(Base, BaseModel):
赵杰's avatar
赵杰 committed
1244 1245
    __tablename__ = 'fin_pro_res'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283
    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='募集量')


1284
class FriendArticle(Base, BaseModel):
赵杰's avatar
赵杰 committed
1285 1286
    __tablename__ = 'friend_article'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298
    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
1299
    openid = Column(String(128), comment='openid')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322
    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='驳回时间')


1323
class Func(Base, BaseModel):
赵杰's avatar
赵杰 committed
1324 1325
    __tablename__ = 'func'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339
    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='删除标识')


1340
class HomeRemmend(Base, BaseModel):
赵杰's avatar
赵杰 committed
1341 1342
    __tablename__ = 'home_remmend'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1343 1344 1345 1346 1347 1348 1349
    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
1350 1351


1352
class IfaWechatPoster(Base, BaseModel):
赵杰's avatar
赵杰 committed
1353 1354
    __tablename__ = 'ifa_wechat_poster'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1355 1356 1357 1358 1359 1360 1361
    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
1362 1363


1364
class IfaWechatStore(Base, BaseModel):
赵杰's avatar
赵杰 committed
1365
    __tablename__ = 'ifa_wechat_store'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1366
    __table_args__ = {'comment': '微店信息表'}
赵杰's avatar
赵杰 committed
1367

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1368
    id = Column(String(64), primary_key=True, comment='唯一主键')
赵杰's avatar
赵杰 committed
1369
    storename = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1370 1371 1372 1373 1374
    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
1375 1376


1377
class ImpressionLabel(Base, BaseModel):
赵杰's avatar
赵杰 committed
1378 1379
    __tablename__ = 'impression_label'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1380 1381 1382 1383 1384 1385 1386
    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
1387 1388


1389
class InvestorRz(Base, BaseModel):
赵杰's avatar
赵杰 committed
1390 1391
    __tablename__ = 'investor_rz'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407
    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='副标题')


1408
class OperateActivityNewyeardraw(Base, BaseModel):
赵杰's avatar
赵杰 committed
1409 1410
    __tablename__ = 'operate_activity_newyeardraw'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1411 1412 1413 1414 1415 1416
    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
1417
    oan_resimgurl = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1418 1419 1420 1421 1422
    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
1423 1424


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

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437
    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
1438 1439


1440
class OrderFlow(Base, BaseModel):
赵杰's avatar
赵杰 committed
1441 1442
    __tablename__ = 'order_flow'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468
    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')


1469
class Org(Base, BaseModel):
赵杰's avatar
赵杰 committed
1470 1471
    __tablename__ = 'org'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496
    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='删除标识')


1497
class PhotoLive(Base, BaseModel):
赵杰's avatar
赵杰 committed
1498 1499
    __tablename__ = 'photo_live'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518
    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='删除标识')


1519
class PhotoLiveExt(Base, BaseModel):
赵杰's avatar
赵杰 committed
1520 1521
    __tablename__ = 'photo_live_ext'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535
    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='删除标识')


1536
class PhotoLiveLike(Base, BaseModel):
赵杰's avatar
赵杰 committed
1537 1538
    __tablename__ = 'photo_live_like'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1539 1540 1541 1542 1543 1544 1545 1546 1547 1548
    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
1549 1550


1551
class ProReservation(Base, BaseModel):
赵杰's avatar
赵杰 committed
1552 1553
    __tablename__ = 'pro_reservation'

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


1570
class ProblemFeedback(Base, BaseModel):
赵杰's avatar
赵杰 committed
1571 1572
    __tablename__ = 'problem_feedback'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1573 1574 1575 1576 1577 1578 1579 1580 1581
    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
1582 1583


1584
class QrtzCalendar(Base, BaseModel):
赵杰's avatar
赵杰 committed
1585 1586 1587 1588 1589 1590 1591
    __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)


1592
class QrtzFiredTrigger(Base, BaseModel):
赵杰's avatar
赵杰 committed
1593 1594
    __tablename__ = 'qrtz_fired_triggers'
    __table_args__ = (
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1595
        Index('IDX_QRTZ_FT_TRIG_INST_NAME', 'SCHED_NAME', 'INSTANCE_NAME'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1596
        Index('IDX_QRTZ_FT_JG', 'SCHED_NAME', 'JOB_GROUP'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1597
        Index('IDX_QRTZ_FT_T_G', 'SCHED_NAME', 'TRIGGER_NAME', 'TRIGGER_GROUP'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1598
        Index('IDX_QRTZ_FT_INST_JOB_REQ_RCVRY', 'SCHED_NAME', 'INSTANCE_NAME', 'REQUESTS_RECOVERY'),
赵杰's avatar
赵杰 committed
1599
        Index('IDX_QRTZ_FT_TG', 'SCHED_NAME', 'TRIGGER_GROUP'),
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1600
        Index('IDX_QRTZ_FT_J_G', 'SCHED_NAME', 'JOB_NAME', 'JOB_GROUP')
赵杰's avatar
赵杰 committed
1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617
    )

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


1618
class QrtzJobDetail(Base, BaseModel):
赵杰's avatar
赵杰 committed
1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636
    __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)


1637
class QrtzLock(Base, BaseModel):
赵杰's avatar
赵杰 committed
1638 1639 1640 1641 1642 1643
    __tablename__ = 'qrtz_locks'

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


1644
class QrtzPausedTriggerGrp(Base, BaseModel):
赵杰's avatar
赵杰 committed
1645 1646 1647 1648 1649 1650
    __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)


1651
class QrtzSchedulerState(Base, BaseModel):
赵杰's avatar
赵杰 committed
1652 1653 1654 1655 1656 1657 1658 1659
    __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)


1660
class Quotation(Base, BaseModel):
赵杰's avatar
赵杰 committed
1661
    __tablename__ = 'quotations'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1662
    __table_args__ = {'comment': '每日金句'}
赵杰's avatar
赵杰 committed
1663 1664

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677
    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='预上架时间')


1678
class Rebroadcast(Base, BaseModel):
赵杰's avatar
赵杰 committed
1679 1680
    __tablename__ = 'rebroadcast'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694
    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='删除标识')


1695
class ReportActvolume(Base, BaseModel):
赵杰's avatar
赵杰 committed
1696 1697
    __tablename__ = 'report_actvolume'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718
    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='删除标识')


1719
class ReportCnReportform(Base, BaseModel):
赵杰's avatar
赵杰 committed
1720 1721
    __tablename__ = 'report_cn_reportform'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759
    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='删除标识')


1760
class ReportProAnalysi(Base, BaseModel):
赵杰's avatar
赵杰 committed
1761 1762
    __tablename__ = 'report_pro_analysis'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780
    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='删除标识')


1781
class ReportProInterest(Base, BaseModel):
赵杰's avatar
赵杰 committed
1782 1783
    __tablename__ = 'report_pro_interest'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794
    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
1795 1796


1797
class ReportTeamAnalysi(Base, BaseModel):
赵杰's avatar
赵杰 committed
1798 1799
    __tablename__ = 'report_team_analysis'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815
    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='删除标识')


1816
class Report(Base, BaseModel):
赵杰's avatar
赵杰 committed
1817 1818
    __tablename__ = 'reports'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847
    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='删除标识')


1848
class RiskAssessment(Base, BaseModel):
赵杰's avatar
赵杰 committed
1849 1850
    __tablename__ = 'risk_assessment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867
    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='有效期(单位:月)')


1868
class RiskAssessmentItem(Base, BaseModel):
赵杰's avatar
赵杰 committed
1869 1870
    __tablename__ = 'risk_assessment_item'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884
    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='删除标识')


1885
class SensitiveWord(Base, BaseModel):
赵杰's avatar
赵杰 committed
1886 1887
    __tablename__ = 'sensitive_word'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1888 1889 1890 1891 1892 1893 1894 1895
    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
1896 1897


1898
class ShareCustom(Base, BaseModel):
赵杰's avatar
赵杰 committed
1899 1900
    __tablename__ = 'share_custom'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914
    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='删除标识')


1915
class SharePoster(Base, BaseModel):
赵杰's avatar
赵杰 committed
1916 1917
    __tablename__ = 'share_poster'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931
    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='海报状态')


1932
class ShyhMonthPerformance(Base, BaseModel):
赵杰's avatar
赵杰 committed
1933 1934
    __tablename__ = 'shyh_month_performance'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962
    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
1963
    cycleFlag = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1964 1965 1966 1967 1968
    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
1969 1970


1971
class ShyhPerformance(Base, BaseModel):
赵杰's avatar
赵杰 committed
1972 1973
    __tablename__ = 'shyh_performance'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 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='唯一主键')
    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
2045 2046
    star_item1_name = Column(String(128))
    star_item2_name = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2047 2048 2049 2050 2051 2052
    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
2053 2054 2055 2056 2057 2058 2059 2060 2061 2062
    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))


2063
class ShyhWeekPerformance(Base, BaseModel):
赵杰's avatar
赵杰 committed
2064 2065
    __tablename__ = 'shyh_week_performance'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093
    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
2094
    cycleFlag = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2095 2096 2097 2098 2099
    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
2100 2101


2102
class SkuInfo(Base, BaseModel):
赵杰's avatar
赵杰 committed
2103 2104
    __tablename__ = 'sku_info'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2105 2106 2107 2108 2109 2110 2111 2112 2113 2114
    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
2115 2116


2117
class SkuPrice(Base, BaseModel):
赵杰's avatar
赵杰 committed
2118 2119
    __tablename__ = 'sku_price'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2120 2121 2122 2123 2124 2125
    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
2126
    sp_line_price = Column(BIGINT(12))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2127 2128 2129 2130 2131
    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
2132 2133


2134
class Smsrecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
2135 2136
    __tablename__ = 'smsrecord'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2137 2138 2139 2140 2141 2142 2143 2144 2145
    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
2146 2147


2148
class SubjectColumn(Base, BaseModel):
赵杰's avatar
赵杰 committed
2149 2150
    __tablename__ = 'subject_column'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170
    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='删除标识')


2171
class SubjectSelection(Base, BaseModel):
赵杰's avatar
赵杰 committed
2172 2173
    __tablename__ = 'subject_selection'

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


2186
class SysConstant(Base, BaseModel):
赵杰's avatar
赵杰 committed
2187 2188
    __tablename__ = 'sys_constant'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201
    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
2202 2203 2204
    cd_show = Column(INTEGER(3))


2205
class SysFunction(Base, BaseModel):
赵杰's avatar
赵杰 committed
2206 2207
    __tablename__ = 'sys_function'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2208 2209 2210 2211 2212 2213 2214 2215 2216 2217
    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
2218 2219


2220
class SysRole(Base, BaseModel):
赵杰's avatar
赵杰 committed
2221 2222
    __tablename__ = 'sys_role'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2223 2224 2225 2226 2227 2228 2229 2230 2231
    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
2232 2233


2234
class SysSwitch(Base, BaseModel):
赵杰's avatar
赵杰 committed
2235 2236
    __tablename__ = 'sys_switch'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250
    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='删除标识')


2251
class SysUser(Base, BaseModel):
赵杰's avatar
赵杰 committed
2252 2253
    __tablename__ = 'sys_user'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269
    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='所属部门')


2270
class SystemNotice(Base, BaseModel):
赵杰's avatar
赵杰 committed
2271 2272
    __tablename__ = 'system_notice'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2273 2274 2275 2276 2277 2278 2279 2280 2281
    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
2282 2283


赵杰's avatar
赵杰 committed
2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296
# t_system_switch = Table(
#     'system_switch', metadata,
#     Column('id', String(64), nullable=False, server_default=text("''"), comment='唯一主键'),
#     Column('ss_name', String(64), comment='名称'),
#     Column('ss_key', String(64), comment='key'),
#     Column('ss_value', String(64), comment='value'),
#     Column('ss_desc', String(256), comment='描述'),
#     Column('createtime', DateTime, comment='创建时间'),
#     Column('createby', String(64), comment='创建人'),
#     Column('updatetime', DateTime, comment='修改时间'),
#     Column('updateby', String(64), comment='修改人'),
#     Column('deletetag', String(3), comment='删除标识')
# )
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2297 2298


2299
class Tag(Base, BaseModel):
赵杰's avatar
赵杰 committed
2300 2301
    __tablename__ = 'tag'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2302 2303 2304 2305 2306 2307 2308 2309 2310 2311
    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
2312 2313


2314
class TagCategory(Base, BaseModel):
赵杰's avatar
赵杰 committed
2315 2316
    __tablename__ = 'tag_category'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2317 2318 2319 2320 2321 2322 2323
    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
2324 2325


赵杰's avatar
赵杰 committed
2326 2327 2328 2329 2330 2331 2332 2333 2334 2335
# t_tag_rel = Table(
#     'tag_rel', metadata,
#     Column('id', String(64), nullable=False, comment='主键id'),
#     Column('tag_id', String(64), nullable=False, index=True, comment='标签id'),
#     Column('rel_id', String(64), nullable=False, index=True, comment='关联id'),
#     Column('rel_type', INTEGER(1), nullable=False, comment='关联类型'),
#     Column('tag_category_id', String(64), nullable=False, comment='标签分类'),
#     Column('tag_category_name', String(64), nullable=False, comment='标签分类'),
#     Column('create_time', DateTime, nullable=False, comment='创建时间')
# )
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2336 2337


2338
class TaskSchedule(Base, BaseModel):
赵杰's avatar
赵杰 committed
2339 2340 2341
    __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
2342
        {'comment': '任务进度表'}
赵杰's avatar
赵杰 committed
2343 2344 2345
    )

    id = Column(String(64, 'utf8mb4_unicode_ci'), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2346 2347
    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
2348
    task_pro_send = Column(String(255, 'utf8mb4_unicode_ci'))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2349
    ext1 = Column(String(50, 'utf8mb4_unicode_ci'), comment='扩展字段')
赵杰's avatar
赵杰 committed
2350 2351
    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
2352
    task_status = Column(INTEGER(3), nullable=False, server_default=text("'1'"), comment='1:进行中 2:通知完成')
赵杰's avatar
赵杰 committed
2353 2354 2355
    delete_tag = Column(INTEGER(3), nullable=False, server_default=text("'0'"))


2356
class Team(Base, BaseModel):
赵杰's avatar
赵杰 committed
2357 2358
    __tablename__ = 'team'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2359 2360 2361 2362 2363
    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
2364
    full_path_name = Column(String(1024))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379
    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='内容审核者')


2380
class TeamArticle(Base, BaseModel):
赵杰's avatar
赵杰 committed
2381 2382
    __tablename__ = 'team_article'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2383 2384 2385 2386
    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
2387
    org_id = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2388 2389 2390 2391 2392
    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
2393 2394


2395
class TeamProduct(Base, BaseModel):
赵杰's avatar
赵杰 committed
2396 2397
    __tablename__ = 'team_product'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2398 2399 2400
    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
2401
    org_id = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2402 2403 2404 2405 2406
    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
2407 2408


赵杰's avatar
赵杰 committed
2409 2410 2411 2412 2413 2414
# t_test = Table(
#     'test', metadata,
#     Column('id', INTEGER(11)),
#     Column('createby', String(12)),
#     Column('faid', String(12))
# )
赵杰's avatar
赵杰 committed
2415 2416


2417
class ThreadTask(Base, BaseModel):
赵杰's avatar
赵杰 committed
2418 2419
    __tablename__ = 'thread_task'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2420 2421 2422 2423 2424 2425 2426 2427 2428
    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
2429 2430


2431
class UbrFauser(Base, BaseModel):
赵杰's avatar
赵杰 committed
2432 2433
    __tablename__ = 'ubr_fauser'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2434 2435 2436 2437 2438 2439
    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
2440 2441
    uf_target_grade = Column(String(256))
    us_bumen = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486
    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
2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506
    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)


2507
class UbrGrade(Base, BaseModel):
赵杰's avatar
赵杰 committed
2508 2509
    __tablename__ = 'ubr_grade'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2510 2511 2512 2513 2514 2515 2516 2517
    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
2518 2519


2520
class UbrRankCycle(Base, BaseModel):
赵杰's avatar
赵杰 committed
2521 2522
    __tablename__ = 'ubr_rank_cycle'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537
    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='删除标识')


2538
class UbrRankCycleDetail(Base, BaseModel):
赵杰's avatar
赵杰 committed
2539 2540
    __tablename__ = 'ubr_rank_cycle_detail'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2541 2542 2543 2544 2545 2546 2547 2548 2549 2550
    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
2551 2552


2553
class UbrSharesource(Base, BaseModel):
赵杰's avatar
赵杰 committed
2554 2555
    __tablename__ = 'ubr_sharesource'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2556
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
赵杰's avatar
赵杰 committed
2557 2558
    us_fausers_id = Column(String(64))
    us_uname = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2559
    us_urcid = Column(String(64), comment='排名周期活动ID')
赵杰's avatar
赵杰 committed
2560 2561
    us_shenfen = Column(String(32))
    us_bumen = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580
    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
2581 2582 2583 2584 2585
    us_headimg = Column(String(256))
    us_grade = Column(String(64))
    us_target_grade = Column(String(256))


2586
class UserActivity(Base, BaseModel):
赵杰's avatar
赵杰 committed
2587 2588
    __tablename__ = 'user_activity'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2589 2590 2591 2592 2593 2594 2595 2596 2597
    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
2598 2599


2600
class UserApplication(Base, BaseModel):
赵杰's avatar
赵杰 committed
2601 2602
    __tablename__ = 'user_application'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619
    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='得分')


2620
class UserApplicationQuestion(Base, BaseModel):
赵杰's avatar
赵杰 committed
2621 2622
    __tablename__ = 'user_application_question'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638
    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='答案')


2639
class UserAuth(Base, BaseModel):
赵杰's avatar
赵杰 committed
2640
    __tablename__ = 'user_auth'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2641
    __table_args__ = {'comment': '角色功能表'}
赵杰's avatar
赵杰 committed
2642 2643

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2644 2645 2646 2647
    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
2648 2649 2650 2651 2652 2653 2654
    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))


2655
class UserBehaviorRecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
2656 2657 2658 2659 2660
    __tablename__ = 'user_behavior_record'
    __table_args__ = (
        Index('idx_routerurl_type', 'ubr_routerurl', 'ubr_type'),
    )

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687
    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
2688
    ubr_ext11 = Column(String(128))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2689 2690 2691 2692
    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
2693
    ubr_openid = Column(String(128), comment='openid')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704
    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
2705 2706 2707
    ubr_time_process = Column(String(32))


2708
class UserChannel(Base, BaseModel):
赵杰's avatar
赵杰 committed
2709 2710
    __tablename__ = 'user_channel'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2711 2712 2713 2714 2715 2716 2717
    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
2718 2719


2720
class UserClock(Base, BaseModel):
赵杰's avatar
赵杰 committed
2721 2722
    __tablename__ = 'user_clock'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739
    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='删除标识')


2740
class UserClueMessage(Base, BaseModel):
赵杰's avatar
赵杰 committed
2741 2742
    __tablename__ = 'user_clue_message'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762
    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='消息体')


2763
class UserComment(Base, BaseModel):
赵杰's avatar
赵杰 committed
2764 2765
    __tablename__ = 'user_comment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776
    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
2777 2778


2779
class UserCompany(Base, BaseModel):
赵杰's avatar
赵杰 committed
2780 2781
    __tablename__ = 'user_company'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2782 2783 2784 2785 2786
    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
2787
    uc_logo = Column(String(128), comment='logo')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2788 2789 2790 2791 2792 2793 2794
    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
2795
    uc_info_detail = Column(Text)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2796 2797 2798 2799 2800 2801
    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
2802 2803


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

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2807
    id = Column(String(64), primary_key=True, server_default=text("''"), comment='唯一主键')
赵杰's avatar
赵杰 committed
2808
    uc_openid = Column(String(128), comment='openid\\n')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2809
    uc_source = Column(String(64), comment='来源')
赵杰's avatar
赵杰 committed
2810
    uc_unionid = Column(String(128), comment='unionId')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823
    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
2824
    uc_contact_time_isopen = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2825
    uc_contact_time = Column(String(128), comment='方便联系时间')
赵杰's avatar
赵杰 committed
2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840
    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
2841
    uc_birthday = Column(DateTime, comment='生日')
赵杰's avatar
赵杰 committed
2842 2843
    uc_sex_isopen = Column(String(3))
    uc_sex = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2844
    uc_status = Column(INTEGER(3), comment='客户状态')
赵杰's avatar
赵杰 committed
2845 2846


2847
class UserCustomerProcessRecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
2848 2849
    __tablename__ = 'user_customer_process_record'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860
    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
2861 2862


2863
class UserEvaluate(Base, BaseModel):
赵杰's avatar
赵杰 committed
2864 2865
    __tablename__ = 'user_evaluate'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885
    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='删除标识')


2886
class UserExam(Base, BaseModel):
赵杰's avatar
赵杰 committed
2887 2888
    __tablename__ = 'user_exam'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906
    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='删除标识')


2907
class UserExamContent(Base, BaseModel):
赵杰's avatar
赵杰 committed
2908 2909
    __tablename__ = 'user_exam_content'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927
    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='删除标识')


2928
class UserFinprore(Base, BaseModel):
赵杰's avatar
赵杰 committed
2929 2930
    __tablename__ = 'user_finprores'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2931 2932 2933 2934 2935 2936 2937 2938 2939
    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
2940 2941 2942 2943
    team_id = Column(String(64))
    team_full_path = Column(String(1024))


2944
class UserImpressionLabel(Base, BaseModel):
赵杰's avatar
赵杰 committed
2945 2946
    __tablename__ = 'user_impression_label'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2947 2948 2949 2950 2951 2952 2953 2954
    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
2955 2956


2957
class UserImpressionLabelZan(Base, BaseModel):
赵杰's avatar
赵杰 committed
2958 2959
    __tablename__ = 'user_impression_label_zan'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2960 2961 2962 2963 2964 2965 2966 2967
    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
2968 2969


2970
class UserIndex(Base, BaseModel):
赵杰's avatar
赵杰 committed
2971 2972
    __tablename__ = 'user_index'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983
    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
2984 2985


2986
class UserInfo(Base, BaseModel):
赵杰's avatar
赵杰 committed
2987 2988
    __tablename__ = 'user_info'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2989 2990
    id = Column(VARCHAR(64), primary_key=True, server_default=text("''"), comment='唯一主键')
    ui_openid = Column(String(128), comment='微信openId')
赵杰's avatar
赵杰 committed
2991
    ui_unionId = Column(String(64), comment='unionId')
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026
    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
3027 3028 3029 3030 3031 3032 3033
    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
3034 3035 3036 3037 3038 3039 3040
    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
3041 3042 3043 3044 3045 3046 3047 3048 3049
    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
3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060
    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
3061
    ui_register_time = Column(DateTime)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3062
    ui_auth = Column(String(256), comment='权限集 以英文;分割(S1-基础营)')
赵杰's avatar
赵杰 committed
3063
    ui_channel = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3064 3065 3066 3067
    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
3068 3069


3070
class UserInfoExt(Base, BaseModel):
赵杰's avatar
赵杰 committed
3071 3072
    __tablename__ = 'user_info_ext'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3073 3074 3075 3076
    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
3077
    uie_hbimg = Column(String(256))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091
    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
3092 3093


赵杰's avatar
赵杰 committed
3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131
# t_user_info_history = Table(
#     'user_info_history', metadata,
#     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
3132 3133


3134
class UserInvestorRz(Base, BaseModel):
赵杰's avatar
赵杰 committed
3135 3136
    __tablename__ = 'user_investor_rz'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147
    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
3148 3149


3150
class UserLike(Base, BaseModel):
赵杰's avatar
赵杰 committed
3151 3152
    __tablename__ = 'user_like'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3153 3154 3155 3156 3157 3158 3159 3160 3161
    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
3162 3163


3164
class UserLoginSign(Base, BaseModel):
赵杰's avatar
赵杰 committed
3165 3166
    __tablename__ = 'user_login_sign'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3167 3168 3169 3170 3171 3172 3173 3174 3175
    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
3176 3177


3178
class UserOperateLog(Base, BaseModel):
赵杰's avatar
赵杰 committed
3179 3180
    __tablename__ = 'user_operate_log'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3181 3182 3183 3184 3185
    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
3186 3187
    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
3188
    status = Column(INTEGER(11), nullable=False, comment='状态,1待审核,2已完成,3已取消')
赵杰's avatar
赵杰 committed
3189 3190


3191
class UserRecallRecord(Base, BaseModel):
赵杰's avatar
赵杰 committed
3192 3193 3194
    __tablename__ = 'user_recall_record'

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206
    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='是否删除')


3207
class UserRecallRecordLog(Base, BaseModel):
赵杰's avatar
赵杰 committed
3208 3209 3210
    __tablename__ = 'user_recall_record_log'

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223
    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:加备注')


3224
class UserRecommend(Base, BaseModel):
赵杰's avatar
赵杰 committed
3225 3226
    __tablename__ = 'user_recommend'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248
    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='删除标识')


3249
class UserRight(Base, BaseModel):
赵杰's avatar
赵杰 committed
3250 3251
    __tablename__ = 'user_rights'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262
    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
3263 3264


3265
class UserRightsDetail(Base, BaseModel):
赵杰's avatar
赵杰 committed
3266 3267
    __tablename__ = 'user_rights_detail'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282
    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='删除标识')


3283
class UserRiskAssessment(Base, BaseModel):
赵杰's avatar
赵杰 committed
3284 3285
    __tablename__ = 'user_risk_assessment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305
    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='有效期(单位:月)')


3306
class UserRiskAssessmentItem(Base, BaseModel):
赵杰's avatar
赵杰 committed
3307 3308
    __tablename__ = 'user_risk_assessment_item'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324
    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='删除标识')


3325
class UserRistRz(Base, BaseModel):
赵杰's avatar
赵杰 committed
3326 3327
    __tablename__ = 'user_rist_rz'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349
    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='删除标识')


3350
class UserRole(Base, BaseModel):
赵杰's avatar
赵杰 committed
3351
    __tablename__ = 'user_role'
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3352
    __table_args__ = {'comment': '数据权限'}
赵杰's avatar
赵杰 committed
3353 3354

    id = Column(String(64), primary_key=True)
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3355 3356 3357 3358 3359 3360 3361
    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
3362 3363 3364 3365 3366 3367 3368
    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'"))


3369
class UserShield(Base, BaseModel):
赵杰's avatar
赵杰 committed
3370 3371
    __tablename__ = 'user_shield'

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


3383
class UserTalk(Base, BaseModel):
赵杰's avatar
赵杰 committed
3384 3385
    __tablename__ = 'user_talk'

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


3398
class UserTeam(Base, BaseModel):
赵杰's avatar
赵杰 committed
3399 3400
    __tablename__ = 'user_team'

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


3413
class UserTemplate(Base, BaseModel):
赵杰's avatar
赵杰 committed
3414 3415
    __tablename__ = 'user_template'

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


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

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


3439
class UserVisitorClue(Base, BaseModel):
赵杰's avatar
赵杰 committed
3440 3441
    __tablename__ = 'user_visitor_clue'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3442 3443 3444 3445 3446
    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
3447
    uc_real_phone = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3448 3449 3450 3451 3452 3453 3454
    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
3455
    uc_ismycustomer = Column(INTEGER(5))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3456 3457 3458 3459 3460 3461
    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
3462
    uc_recommend_val = Column(INTEGER(11), server_default=text("'11'"))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3463
    orgid = Column(String(64), comment='机构代码')
赵杰's avatar
赵杰 committed
3464
    user_source = Column(String(3))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476
    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:是')


3477
class UserWechat(Base, BaseModel):
赵杰's avatar
赵杰 committed
3478 3479
    __tablename__ = 'user_wechats'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3480 3481 3482 3483 3484 3485 3486
    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
3487 3488


3489
class UserWhitelist(Base, BaseModel):
赵杰's avatar
赵杰 committed
3490 3491
    __tablename__ = 'user_whitelist'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3492 3493 3494 3495 3496 3497 3498 3499
    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
3500 3501


3502
class VipUser(Base, BaseModel):
赵杰's avatar
赵杰 committed
3503 3504
    __tablename__ = 'vip_user'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519
    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='删除标识')


3520
class WxCpUser(Base, BaseModel):
赵杰's avatar
赵杰 committed
3521 3522
    __tablename__ = 'wx_cp_user'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3523 3524 3525 3526 3527 3528 3529 3530 3531 3532
    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
3533 3534


3535
class ZhiboAppointment(Base, BaseModel):
赵杰's avatar
赵杰 committed
3536 3537
    __tablename__ = 'zhibo_appointment'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3538 3539 3540 3541 3542 3543 3544 3545
    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
3546 3547


3548
class ZhiboBlack(Base, BaseModel):
赵杰's avatar
赵杰 committed
3549 3550
    __tablename__ = 'zhibo_black'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3551 3552 3553 3554 3555 3556 3557 3558 3559 3560
    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
3561 3562


3563
class ZhiboExam(Base, BaseModel):
赵杰's avatar
赵杰 committed
3564 3565
    __tablename__ = 'zhibo_exam'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576
    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
3577 3578


3579
class ZhiboExamAnswer(Base, BaseModel):
赵杰's avatar
赵杰 committed
3580 3581
    __tablename__ = 'zhibo_exam_answer'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592
    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
3593 3594


3595
class ZhiboFile(Base, BaseModel):
赵杰's avatar
赵杰 committed
3596 3597
    __tablename__ = 'zhibo_file'

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


3612
class ZhiboHost(Base, BaseModel):
赵杰's avatar
赵杰 committed
3613 3614
    __tablename__ = 'zhibo_host'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3615 3616 3617 3618 3619 3620 3621 3622 3623
    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
3624 3625


3626
class ZhiboManger(Base, BaseModel):
赵杰's avatar
赵杰 committed
3627 3628
    __tablename__ = 'zhibo_manger'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3629 3630 3631 3632
    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
3633 3634
    zm_paixu = Column(INTEGER(3))
    zm_username = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3635 3636 3637 3638 3639 3640 3641
    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
3642 3643


3644
class ZhiboMessage(Base, BaseModel):
赵杰's avatar
赵杰 committed
3645 3646
    __tablename__ = 'zhibo_message'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3647 3648
    id = Column(String(64), primary_key=True, comment='唯一主键')
    zm_content = Column(String(1024), comment='消息')
赵杰's avatar
赵杰 committed
3649
    zm_themeid = Column(String(64))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3650 3651 3652 3653 3654
    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
3655 3656 3657 3658 3659
    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
3660 3661 3662 3663 3664 3665 3666
    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
3667 3668


3669
class ZhiboPhrase(Base, BaseModel):
赵杰's avatar
赵杰 committed
3670 3671
    __tablename__ = 'zhibo_phrase'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3672 3673 3674 3675 3676 3677 3678 3679 3680 3681
    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
3682 3683


3684
class ZhiboSign(Base, BaseModel):
赵杰's avatar
赵杰 committed
3685 3686
    __tablename__ = 'zhibo_sign'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697
    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
3698 3699


3700
class ZhiboTheme(Base, BaseModel):
赵杰's avatar
赵杰 committed
3701 3702
    __tablename__ = 'zhibo_theme'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3703 3704 3705 3706 3707
    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
3708
    zt_roomnum = Column(String(32))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727
    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
3728 3729 3730 3731
    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
3732
    zt_cardinal = Column(INTEGER(11), comment='直播基数')
赵杰's avatar
赵杰 committed
3733 3734


3735
class ZhiboUser(Base, BaseModel):
赵杰's avatar
赵杰 committed
3736 3737
    __tablename__ = 'zhibo_users'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3738 3739 3740 3741
    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
3742
    zu_fullpath = Column(String(512))
pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3743 3744 3745 3746 3747 3748
    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
3749 3750


3751
class Zidian(Base, BaseModel):
赵杰's avatar
赵杰 committed
3752 3753
    __tablename__ = 'zidian'

pengxiong@wealthgrow.cn's avatar
pengxiong@wealthgrow.cn committed
3754 3755 3756 3757 3758 3759 3760 3761 3762 3763
    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
3764