Commit cfdfac27 authored by wang zhengwei's avatar wang zhengwei

增加7 附件订单,并且优化查询速度

parent 4fc297b8
...@@ -44,7 +44,7 @@ class OrderFlow(Base, BaseModel): ...@@ -44,7 +44,7 @@ class OrderFlow(Base, BaseModel):
ab_payment = Column(BIGINT, comment='支付通道付款金额') ab_payment = Column(BIGINT, comment='支付通道付款金额')
ab_pay_mode = Column(String(3), comment='支付方式 1:免费,2:积分,3现金,4:探普贝,5:app微信支付,6:支付宝支付,7:苹果支付, 8:微信公众号支付') ab_pay_mode = Column(String(3), comment='支付方式 1:免费,2:积分,3现金,4:探普贝,5:app微信支付,6:支付宝支付,7:苹果支付, 8:微信公众号支付')
ab_total_money = Column(BIGINT, comment='订单总额') ab_total_money = Column(BIGINT, comment='订单总额')
ab_type = Column(String(3), comment='产品类型 购买类型 1:栏目 3:直播 4:视频 5 音频 6:探普') ab_type = Column(String(3), comment='产品类型 购买类型 1:栏目 3:直播 4:视频 5 音频 6:探普贝 7:附件')
ab_proid = Column(String(64), comment='产品ID') ab_proid = Column(String(64), comment='产品ID')
ab_pro_siid = Column(String(64), comment='产品规格ID') ab_pro_siid = Column(String(64), comment='产品规格ID')
ab_si_type = Column(String(3), comment='购买类型') ab_si_type = Column(String(3), comment='购买类型')
......
...@@ -3562,21 +3562,21 @@ class ZhiboExamAnswer(Base, BaseModel): ...@@ -3562,21 +3562,21 @@ class ZhiboExamAnswer(Base, BaseModel):
deletetag = Column(String(3), comment='删除标识') deletetag = Column(String(3), comment='删除标识')
class ZhiboFile(Base, BaseModel): # class ZhiboFile(Base, BaseModel):
__tablename__ = 'zhibo_file' # __tablename__ = 'zhibo_file'
id = Column(String(64), primary_key=True, comment='唯一主键') # id = Column(String(64), primary_key=True, comment='唯一主键')
zf_themeid = Column(String(32), comment='主题ID') # zf_themeid = Column(String(32), comment='主题ID')
zf_url = Column(String(32), comment='附件地址') # zf_url = Column(String(32), comment='附件地址')
zf_file_type = Column(String(3), comment='上传类型') # zf_file_type = Column(String(3), comment='上传类型')
zf_use = Column(String(3), comment='用途') # zf_use = Column(String(3), comment='用途')
zf_no = Column(INTEGER(3), comment='序号') # zf_no = Column(INTEGER(3), comment='序号')
create_time = Column(DateTime, comment='创建时间') # create_time = Column(DateTime, comment='创建时间')
create_by = Column(String(64), comment='创建人') # create_by = Column(String(64), comment='创建人')
update_time = Column(DateTime, comment='修改时间') # update_time = Column(DateTime, comment='修改时间')
update_by = Column(String(64), comment='修改人') # update_by = Column(String(64), comment='修改人')
deletetag = Column(String(3), comment='删除标识') # deletetag = Column(String(3), comment='删除标识')
org_id = Column(String(64), comment='机构ID') # org_id = Column(String(64), comment='机构ID')
class ZhiboHost(Base, BaseModel): class ZhiboHost(Base, BaseModel):
......
...@@ -79,4 +79,29 @@ class ZhiboTheme(Base, BaseModel): ...@@ -79,4 +79,29 @@ class ZhiboTheme(Base, BaseModel):
isPrivacy = Column(INTEGER(3), comment='是否隐私直播间0否1是') isPrivacy = Column(INTEGER(3), comment='是否隐私直播间0否1是')
iscreate_group_success = Column(INTEGER(3), server_default=text("'0'"), comment='是否已创建群组 0:否 1:是') iscreate_group_success = Column(INTEGER(3), server_default=text("'0'"), comment='是否已创建群组 0:否 1:是')
max_online_num = Column(INTEGER(11), server_default=text("'0'"), comment='在线人数峰值') max_online_num = Column(INTEGER(11), server_default=text("'0'"), comment='在线人数峰值')
tags = Column(String(255), comment='标签') tags = Column(String(255), comment='标签')
\ No newline at end of file
class ZhiboFile(Base, BaseModel):
__tablename__ = 'zhibo_file'
__table_args__ = {'comment': '直播间附件表'}
id = Column(String(64), primary_key=True, comment='唯一主键')
zf_themeid = Column(String(32), comment='主题ID')
zf_url = Column(String(256), comment='附件地址')
zf_file_type = Column(String(3), comment='上传类型 1直播间附件,2直播间图片 ,3直播间转码视频,4直播间转码音频,5直播间原始视频,6直播间原始音频,7讲师本地上传图片,8用户头像,9问卷图片,10 直播间课件')
zf_use = Column(String(3), comment='用途')
zf_no = Column(String(3), comment='序号')
create_time = Column(DateTime, nullable=False, comment='创建时间')
create_by = Column(String(64), comment='创建人')
update_time = Column(DateTime, comment='修改时间')
update_by = Column(String(64), comment='修改人')
deletetag = Column(String(3), comment='删除标识 0:正常,1: 删除 2:草稿')
org_id = Column(String(64), server_default=text("'1'"), comment='机构ID')
file_ext = Column(String(10), comment='文件扩展名')
file_size = Column(INTEGER(11), comment='文件大小')
file_md5 = Column(String(32), comment='文件Md5')
remark = Column(String(100), comment='备注 文件名')
status = Column(String(5), comment='文件状态 0:未完成,1:已完成')
task_id = Column(String(64), comment='阿里云异步转换id')
cs_file_id = Column(String(64), comment='filerecord记录id')
file_num = Column(String(11), comment='附件总页数 用于转换图片使用')
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment