1. 3.1.2
数据库表数量: 164个
- APP:base
- APP:desktop
- APP:ectools
- APP:image
- APP:importexport
- APP:search
- APP:serveradm
- APP:site
- APP:sysaftersales
- APP:sysapp
- APP:syscategory
- APP:sysclearing
- APP:syscontent
- APP:sysdecorate
- APP:sysim
- APP:sysitem
- APP:syslogistics
- APP:sysopen
- APP:syspromotion
- syspromotion_activity(活动规则表)
- syspromotion_activity_item(活动商品表)
- syspromotion_activity_register(活动报名表)
- syspromotion_coupon(优惠券表)
- syspromotion_coupon_item(商品与促销规则关联表)
- syspromotion_freepostage(免邮表)
- syspromotion_freepostage_item(商品与促销规则关联表)
- syspromotion_fulldiscount(满折促销规则表)
- syspromotion_fulldiscount_item(商品与促销规则关联表)
- syspromotion_fullminus(满减促销规则表)
- syspromotion_fullminus_item(商品与促销规则关联表)
- syspromotion_gift(优惠券表)
- syspromotion_gift_item(商品与促销规则赠品关联表)
- syspromotion_gift_sku(参与赠品促销的货品关联表)
- syspromotion_hongbao(平台红包规则表)
- syspromotion_package(组合促销促销规则表)
- syspromotion_package_item(组合促销商品表)
- syspromotion_page(促销专题页)
- syspromotion_promotions(各种促销关联表)
- syspromotion_remind(提醒表)
- syspromotion_xydiscount(X件Y折促销规则表)
- syspromotion_xydiscount_item(商品与促销规则关联表)
- APP:sysrate
- APP:sysshop
- sysshop_account(商家会员表)
- sysshop_enterapply(入驻申请表)
- sysshop_roles(角色表)
- sysshop_seller(商家账号信息)
- sysshop_shop(店铺表)
- sysshop_shop_apply_cat(店铺申请类目权限表)
- sysshop_shop_cat(店铺分类表)
- sysshop_shop_info(企业信息表)
- sysshop_shop_notice(商家通知表)
- sysshop_shop_rel_brand(店铺品牌关联表)
- sysshop_shop_rel_dlycorp(店铺签约物流公司表)
- sysshop_shop_rel_lv1cat(店铺关联类目表)
- sysshop_shop_rel_seller(店铺子账号关联表)
- sysshop_shop_type(店铺类型表)
- sysshop_store_police(库存报警表)
- sysshop_subdomain(店铺二级域名表)
- APP:sysstat
- sysstat_desktop_collect_item(店铺收藏排行统计表)
- sysstat_desktop_collect_shop(店铺收藏排行统计表)
- sysstat_desktop_item_statics(运营商商品统计表)
- sysstat_desktop_stat_shop(店铺销售排行统计表)
- sysstat_desktop_stat_user(会员统计表)
- sysstat_desktop_stat_userorder(会员统计表)
- sysstat_desktop_trade_statics(运营商交易统计表)
- sysstat_item_statics(商品统计表)
- sysstat_statmember(会员统计表)
- sysstat_trade_statics(交易统计表)
- APP:system
- APP:systrade
- systrade_activity_detail(订单使用的活动信息表)
- systrade_cart(购物车)
- systrade_cart_coupon(购物车使用优惠券表)
- systrade_cart_item(购物车sku数量信息表)
- systrade_delivery_code(自提订单提货码记录表)
- systrade_log(订单日志表)
- systrade_order(订单子表)
- systrade_order_complaints(订单投诉表)
- systrade_promotion_detail(订单使用的促销信息表)
- systrade_trade(订单主表)
- systrade_trade_cancel(取消订单表)
- APP:sysuser
- sysuser_account(商城会员用户表)
- sysuser_shop_fav(收藏店铺表)
- sysuser_tag(标签)
- sysuser_trustinfo()
- sysuser_user(商店会员表)
- sysuser_user_addrs(会员地址表)
- sysuser_user_checkin(签到记录表)
- sysuser_user_coupon(用户优惠券表)
- sysuser_user_deposit(预存款表)
- sysuser_user_deposit_cash(预存款提现信息表)
- sysuser_user_deposit_log(会员预存款记录日志表)
- sysuser_user_experience(会员经验值详细记录表)
- sysuser_user_fav(收藏/缺货登记)
- sysuser_user_grade(会员等级表)
- sysuser_user_hongbao(用户红包表)
- sysuser_user_item_notify(缺货表)
- sysuser_user_point(会员积分值详细记录表[作废])
- sysuser_user_pointlog(会员积分值明细表)
- sysuser_user_points(会员积分表)
- sysuser_user_trade_count()
1.1. app:base tables
1.2. base_app_content
app资源信息表, 记录app的service信息
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
content_id | 序号 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
content_type | service类型(service_category和service) | VARCHAR(80) | Yes | No | |
app_id | 应用的app_id | VARCHAR(32) | Yes | No | |
content_name | service category name - service id | VARCHAR(80) | No | No | |
content_title | optname | VARCHAR(100) | No | No | |
content_path | class name只有type为service才有 | VARCHAR(255) | No | No | |
ordernum | SMALLINT | No | 50 | No | |
input_time | INT UNSIGNED | No | No | ||
disabled | 是否有效 | TINYINT(1) | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | content_id | Yes | |
ind_content_type | content_type | No |
1.3. base_apps
系统应用表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
app_id | VARCHAR(32) | Yes | No | ||
app_name | VARCHAR(50) | No | No | ||
debug_mode | TINYINT(1) | No | 0 | No | |
app_config | LONGTEXT | No | No | ||
status | installed:已安装, 未启动;resolved:已配置;starting:正在启动;active:运行中;stopping:正在关闭;uninstalled:尚未安装;installing:正在安装;broken:已损坏;paused:已暂停; | VARCHAR(11) | No | uninstalled | No |
webpath | 远程地址 | VARCHAR(20) | No | No | |
description | VARCHAR(255) | No | No | ||
local_ver | VARCHAR(20) | No | No | ||
remote_ver | VARCHAR(20) | No | No | ||
author_name | 作者名 | VARCHAR(100) | No | No | |
author_url | 作者url | VARCHAR(100) | No | No | |
author_email | 作者邮件 | VARCHAR(100) | No | No | |
dbver | 目前安装版本 | VARCHAR(32) | No | No | |
remote_config | 远程配置信息 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | app_id | Yes |
1.4. base_crontab
定时任务表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | VARCHAR(100) | Yes | No | ||
description | VARCHAR(255) | Yes | No | ||
enabled | TINYINT(1) | Yes | 1 | No | |
schedule | VARCHAR(255) | Yes | No | ||
last | INT UNSIGNED | Yes | No | ||
app_id | VARCHAR(32) | Yes | No | ||
class | VARCHAR(100) | Yes | No | ||
type | custom:客户自定义;system:系统内置; | VARCHAR(6) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes |
1.5. base_kvstore
kvstore存储表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | 序号 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
prefix | kvstore类型 | VARCHAR(255) | Yes | No | |
key | kvstore存储的键值 | VARCHAR(255) | Yes | No | |
value | kvstore存储值 | LONGTEXT | No | No | |
dateline | 存储修改时间 | INT UNSIGNED | No | No | |
ttl | 过期时间,0代表不过期 | INT UNSIGNED | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_prefix | prefix | No | |
ind_key | key | No |
1.6. base_network
网络互联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
node_id | 序号 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
node_name | VARCHAR(255) | Yes | No | ||
node_url | VARCHAR(100) | Yes | No | ||
node_api | VARCHAR(100) | Yes | No | ||
link_status | active:正常;group:维护;wait:等待对方确认...; | VARCHAR(6) | Yes | wait | No |
node_detail | VARCHAR(255) | No | No | ||
token | VARCHAR(32) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | node_id | Yes |
1.7. base_rpcpoll
ec-rpc连接池表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | VARCHAR(32) | No | No | ||
process_id | VARCHAR(32) | No | No | ||
type | request:发出请求;response:接收的请求; | VARCHAR(8) | No | No | |
calltime | INT UNSIGNED | No | No | ||
network | INT UNSIGNED | No | No | ||
method | VARCHAR(100) | No | No | ||
params | 请求和响应的参数(序列化) | LONGTEXT | No | No | |
callback | VARCHAR(200) | No | No | ||
callback_params | LONGTEXT | No | No | ||
result | LONGTEXT | No | No | ||
fail_times | VARCHAR(10) | Yes | 1 | No | |
status | succ:成功;failed:失败; | VARCHAR(6) | Yes | failed | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
ind_rpc_task_id | id, type, process_id | Yes | |
ind_rpc_response_id | process_id | No |
1.8. base_setting
setting存储表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
app | app名 | VARCHAR(50) | Yes | No | |
key | setting键值 | VARCHAR(255) | Yes | No | |
value | setting存储值 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | app, key | Yes |
1.9. base_syscache_resources
kvstore存储表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | 序号 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
type | kvstore类型 | VARCHAR(255) | Yes | No | |
key | kvstore存储的键值 | VARCHAR(255) | Yes | No | |
value | kvstore存储值 | LONGTEXT | No | No | |
dateline | 存储修改时间 | INT UNSIGNED | No | No | |
ttl | 过期时间,0代表不过期. | INT UNSIGNED | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_prefix | type | No | |
ind_key | key | No |
1.10. app:desktop tables
1.11. desktop_account
用户权限账户表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
account_id | 账户序号ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
account_type | 账户类型(会员和管理员等) | VARCHAR(30) | No | No | |
login_name | 登录用户名 | VARCHAR(100) | Yes | No | |
login_password | 登录密码 | VARCHAR(60) | Yes | No | |
disabled | TINYINT(1) | No | 0 | No | |
createtime | 创建时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | account_id | Yes | |
ind_account | login_name, disabled | Yes |
1.12. desktop_filter
后台搜索过滤器表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
filter_id | finder过滤器ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
filter_name | 过滤条件名称 | VARCHAR(20) | No | No | |
user_id | 过滤器所属后台用户ID | INT UNSIGNED | Yes | No | |
model | 过滤器对应的model(表名) | VARCHAR(100) | Yes | No | |
filter_query | 过滤器对应的过滤条件 | LONGTEXT | No | No | |
ctl | 过滤器对应的controller(控制器) | VARCHAR(100) | Yes | No | |
app | 过滤器对应的app(应用) | VARCHAR(50) | Yes | No | |
act | 过滤器对应的act(方法) | VARCHAR(50) | Yes | No | |
create_time | 过滤器创建时间 | INT UNSIGNED | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | filter_id | Yes |
1.13. desktop_hasrole
后台权限, 角色和用户关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
user_id | 后台用户ID | INT UNSIGNED | Yes | No | |
role_id | 角色ID | INT UNSIGNED | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | user_id, role_id | Yes |
1.14. desktop_menus
后台菜单表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
menu_id | 后台菜单ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
menu_type | 菜单类型 | VARCHAR(80) | Yes | No | |
app_id | 所属app(应用)ID | VARCHAR(32) | Yes | No | |
workground | 顶级菜单 | VARCHAR(200) | No | No | |
menu_group | 菜单组 | VARCHAR(200) | No | No | |
menu_title | 菜单标题 | VARCHAR(100) | No | No | |
menu_path | 菜单对应执行的url路径 | VARCHAR(255) | No | No | |
disabled | TINYINT(1) | No | 0 | No | |
display | 是否显示 | TINYINT(1) | No | 0 | No |
permission | 权限,有效显示范围 | VARCHAR(80) | No | No | |
addon | 额外信息 | LONGTEXT | No | No | |
target | 跳转 | VARCHAR(10) | No | No | |
menu_order | 排序 | INT UNSIGNED | No | 0 | No |
parent | 父节点 | VARCHAR(255) | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | menu_id | Yes | |
ind_menu_type | menu_type | No | |
ind_menu_path | menu_path | No | |
ind_menu_order | menu_order | No |
1.15. desktop_roles
管理员角色表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
role_id | 管理员角色ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
role_name | VARCHAR(100) | Yes | No | ||
workground | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | role_id | Yes |
1.16. desktop_tag
finder tag(标签)表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
tag_id | tag ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
tag_name | VARCHAR(20) | Yes | No | ||
tag_mode | normal:普通标签;filter:自动标签; | VARCHAR(6) | Yes | normal | No |
app_id | app(应用)ID | VARCHAR(32) | Yes | No | |
tag_type | VARCHAR(20) | Yes | No | ||
tag_abbr | VARCHAR(150) | Yes | No | ||
tag_bgcolor | VARCHAR(7) | Yes | No | ||
tag_fgcolor | VARCHAR(7) | Yes | No | ||
tag_filter | VARCHAR(255) | Yes | No | ||
rel_count | 关联的个数 | INT UNSIGNED | Yes | 0 | No |
params | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | tag_id | Yes | |
ind_type | tag_type | No | |
ind_name | tag_name | No |
1.17. desktop_tag_rel
tag和对象关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
tag_id | tag ID | INT UNSIGNED | Yes | 0 | No |
rel_id | 对象ID | VARCHAR(32) | Yes | 0 | No |
app_id | app(应用)ID | VARCHAR(32) | Yes | No | |
tag_type | 标签对应的model(表) | VARCHAR(20) | Yes | No | |
last_modify | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | tag_id, rel_id | Yes |
1.18. desktop_users
商店后台管理员表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
user_id | 后台用户ID | INT UNSIGNED | Yes | No | |
status | TINYINT(1) | Yes | 0 | No | |
name | VARCHAR(30) | No | No | ||
lastlogin | INT UNSIGNED | Yes | 0 | No | |
config | 配置信息 | LONGTEXT | No | No | |
favorite | 爱好 | LONGTEXT | No | No | |
super | TINYINT(1) | Yes | 0 | No | |
lastip | 上次登录ip | VARCHAR(20) | No | No | |
logincount | INT UNSIGNED | Yes | 0 | No | |
disabled | TINYINT(1) | Yes | 0 | No | |
op_no | 操作员no | VARCHAR(50) | No | No | |
memo | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | user_id | Yes | |
ind_disabled | disabled | No |
1.19. app:ectools tables
1.20. ectools_payments
支付记录
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
payment_id | 支付单号 | VARCHAR(20) | Yes | No | ||
money | 需要支付的金额 | NUMERIC(20, 3) | Yes | 0 | No | |
cur_money | 支付货币金额 | NUMERIC(20, 3) | Yes | 0 | No | |
status | 支付状态\ | succ:支付成功;failed:支付失败;cancel:未支付;error:处理异常;invalid:非法参数;progress:已付款至担保方;timeout:超时;ready:准备中;paying:支付中; | VARCHAR(8) | Yes | ready | No |
user_id | 会员 | INT UNSIGNED | No | No | ||
user_name | 会员用户名 | VARCHAR(100) | No | No | ||
pay_type | 支付类型\ | online:在线支付;offline:货到付款;recharge:预存款充值; | VARCHAR(8) | Yes | online | No |
pay_app_id | 支付方式名称 | VARCHAR(100) | No | No | ||
pay_name | 支付方式名 | VARCHAR(100) | No | No | ||
payed_time | 支付完成时间 | INT UNSIGNED | No | No | ||
op_id | 操作员 | INT UNSIGNED | No | No | ||
op_name | 操作员 | VARCHAR(100) | No | No | ||
account | 收款账号 | VARCHAR(50) | No | No | ||
bank | 收款银行 | VARCHAR(50) | No | No | ||
pay_account | 支付账户 | VARCHAR(50) | No | No | ||
currency | 货币 | VARCHAR(10) | No | No | ||
paycost | 支付网关费用 | NUMERIC(20, 3) | No | No | ||
pay_ver | 支付版本号 | VARCHAR(50) | No | No | ||
ip | 支付IP | VARCHAR(20) | No | No | ||
created_time | 支付单创建时间 | INT UNSIGNED | No | No | ||
modified_time | 最后更新时间 | INT UNSIGNED | No | No | ||
memo | 支付注释 | LONGTEXT | No | No | ||
return_url | 支付返回地址 | VARCHAR(255) | No | No | ||
disabled | 支付单状态 | TINYINT(1) | No | 0 | No | |
trade_no | 支付单交易编号 | VARCHAR(30) | No | No | ||
thirdparty_account | 第三方支付账户 | VARCHAR(50) | No | No | ||
tids | 订单id集, 已废弃 | LONGTEXT | No | No | ||
trade_own_money | 订单自有的金额,已废弃 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | payment_id | Yes | |
ind_disabled | disabled | No |
1.21. ectools_refunds
退款单表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
refund_id | VARCHAR(20) | Yes | No | ||
money | NUMERIC(20, 3) | Yes | 0 | No | |
cur_money | NUMERIC(20, 3) | Yes | 0 | No | |
refund_bank | VARCHAR(50) | No | No | ||
refund_account | VARCHAR(50) | No | No | ||
refund_people | VARCHAR(100) | No | No | ||
receive_bank | VARCHAR(50) | No | No | ||
receive_account | VARCHAR(50) | No | No | ||
beneficiary | VARCHAR(50) | No | No | ||
currency | VARCHAR(10) | No | CNY | No | |
paycost | NUMERIC(20, 3) | No | No | ||
rufund_type | online:在线退款;offline:线下退款;deposit:预存款退款; | VARCHAR(7) | Yes | offline | No |
status | succ:支付成功;failed:支付失败;cancel:未支付;error:处理异常;invalid:非法参数;progress:处理中;timeout:超时;ready:准备中; | VARCHAR(8) | Yes | ready | No |
pay_ver | VARCHAR(50) | No | No | ||
op_id | INT UNSIGNED | No | No | ||
refunds_type | 0:售后申请退款;1:取消订单退款; | VARCHAR(1) | Yes | 0 | No |
aftersales_bn | VARCHAR(32) | No | No | ||
pay_app_id | VARCHAR(100) | Yes | 0 | No | |
created_time | INT UNSIGNED | No | No | ||
finish_time | INT UNSIGNED | No | No | ||
confirm_time | INT UNSIGNED | No | No | ||
memo | 备注 | LONGTEXT | No | No | |
oid | 交易子订单号 | VARCHAR(30) | No | No | |
tid | 交易主订单号 | VARCHAR(30) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | refund_id | Yes |
1.22. ectools_trade_paybill
订单支付单据记录
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
paybill_id | 子支付单编号 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
payment_id | 主支付单编号 | VARCHAR(20) | Yes | No | ||
tid | 被支付订单编号 | VARCHAR(20) | Yes | No | ||
status | 该订单支付的状态\ | succ:支付成功;failed:支付失败;cancel:未支付;error:处理异常;invalid:非法参数;progress:已付款至担保方;timeout:超时;ready:准备中;paying:支付中; | VARCHAR(8) | Yes | ready | No |
payment | 该订单支付的金额 | VARCHAR(20) | Yes | No | ||
user_id | 会员id | VARCHAR(100) | No | No | ||
created_time | 支付单创建时间 | INT UNSIGNED | No | No | ||
payed_time | 支付完成时间 | INT UNSIGNED | No | No | ||
modified_time | 最后更新时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | paybill_id | Yes |
1.23. app:image tables
1.24. image_image_cat
图片类型子分类表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
image_cat_id | ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 店铺编号id | INT UNSIGNED | Yes | No | |
img_type | 图片类型 | VARCHAR(20) | No | No | |
image_cat_name | 图片分类名称 | VARCHAR(100) | No | No | |
last_modified | 更新时间 | INT UNSIGNED | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | image_cat_id | Yes |
1.25. image_images
图片表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
storage | VARCHAR(50) | Yes | filesystem | No | |
image_name | VARCHAR(200) | No | No | ||
target_id | 关联ID | BIGINT UNSIGNED | Yes | 0 | No |
target_type | 用户类型 | VARCHAR(20) | Yes | No | |
img_type | VARCHAR(255) | No | No | ||
image_cat_id | 图片类型子分类ID | INT UNSIGNED | No | 0 | No |
url | VARCHAR(255) | Yes | No | ||
ident | 唯一标识 | VARCHAR(200) | No | No | |
width | INT UNSIGNED | No | No | ||
height | INT UNSIGNED | No | No | ||
size | 文件大小 | INT UNSIGNED | No | No | |
last_modified | INT UNSIGNED | Yes | 0 | No | |
disabled | disabled | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_target | target_id, target_type | No | |
ind_url | url | Yes | |
ind_unique | url, target_id, target_type | Yes |
1.26. app:importexport tables
1.27. importexport_task
导出、导入任务表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
task_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
name | VARCHAR(255) | Yes | No | ||
message | VARCHAR(255) | No | No | ||
filetype | VARCHAR(20) | No | No | ||
create_date | INT UNSIGNED | No | No | ||
complete_date | INT UNSIGNED | No | No | ||
type | export:导出;import:导入; | VARCHAR(6) | No | No | |
status | 0:等待执行;1:正在导出;2:导出成功;3:导出失败;4:正在导入;5:导入成功;6:导入失败;7:中断;8:部分导入; | VARCHAR(1) | No | 0 | No |
is_display | 0:隐藏;1:显示; | VARCHAR(1) | No | 0 | No |
key | VARCHAR(255) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | task_id | Yes |
1.28. app:search tables
1.29. search_associate
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
words | VARCHAR(50) | Yes | No | ||
type_id | INT UNSIGNED | No | No | ||
from_type | VARCHAR(50) | No | No | ||
last_modify | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_last_modify | last_modify | No |
1.30. search_delta
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | INT UNSIGNED | Yes | No | ||
index_name | VARCHAR(50) | Yes | No | ||
last_modify | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id, index_name | Yes | |
ind_last_modify | last_modify | No |
1.31. app:serveradm tables
1.32. serveradm_xhprof
xphrof
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
run_id | run_id | VARCHAR(100) | Yes | No | |
source | source | VARCHAR(50) | No | No | |
app | app | VARCHAR(30) | No | No | |
ctl | controller | VARCHAR(100) | No | No | |
act | action | VARCHAR(50) | No | No | |
request_uri | request_uri | VARCHAR(255) | No | No | |
params | LONGTEXT | No | No | ||
addtime | INT UNSIGNED | No | No | ||
wt | VARCHAR(80) | No | No | ||
mu | INT UNSIGNED | No | No | ||
pmu | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | run_id | Yes |
1.33. app:site tables
1.34. site_explorers
site地图表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | site地图表ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
app | 应用(app)名 | VARCHAR(50) | Yes | No | |
title | VARCHAR(100) | Yes | No | ||
path | 路径 | VARCHAR(100) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes |
1.35. site_link
前台链接表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
link_id | 链接ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
link_name | VARCHAR(128) | Yes | No | ||
href | VARCHAR(255) | Yes | No | ||
image_url | VARCHAR(255) | No | No | ||
orderlist | INT UNSIGNED | Yes | 0 | No | |
hidden | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | link_id | Yes |
1.36. site_menus
导航菜单表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | 导航菜单表 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
title | VARCHAR(100) | Yes | No | ||
app | VARCHAR(50) | No | No | ||
ctl | VARCHAR(50) | No | No | ||
act | VARCHAR(50) | No | No | ||
custom_url | VARCHAR(200) | No | No | ||
display_order | SMALLINT | Yes | 0 | No | |
target_blank | TINYINT(1) | Yes | 0 | No | |
hidden | TINYINT(1) | Yes | 0 | No | |
params | LONGTEXT | No | No | ||
config | LONGTEXT | No | No | ||
update_modified | 更新时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes |
1.37. site_seo
前台SEO配置表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
app | 应用(app) | VARCHAR(50) | Yes | No | |
route | 路由别名,唯一标示 | VARCHAR(50) | Yes | No | |
title | VARCHAR(50) | Yes | No | ||
config | LONGTEXT | No | No | ||
param | LONGTEXT | No | No | ||
update_modified | 更新时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_route | route | No |
1.38. site_themes
模板表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
theme | 主题唯一英文名称 | VARCHAR(50) | Yes | No | ||
name | 主题名称 | VARCHAR(50) | No | No | ||
platform | 模板终端\ | pc:电脑端;wap:无线端;mobile:mobile端; | VARCHAR(6) | Yes | pc | No |
stime | 开始使用时间 | INT UNSIGNED | No | No | ||
author | VARCHAR(50) | No | No | |||
site | VARCHAR(100) | No | No | |||
version | VARCHAR(50) | No | No | |||
info | 详细说明 | VARCHAR(255) | No | No | ||
config | 配置信息 | LONGTEXT | No | No | ||
is_used | 是否启用 | TINYINT(1) | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | theme | Yes |
1.39. site_themes_file
模板文件表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
id | 模板文件ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
platform | 模板终端\ | pc:电脑端;wap:无线端;mobile:mobile端; | VARCHAR(6) | Yes | pc | No |
filename | 文件名 | VARCHAR(255) | No | No | ||
filetype | 文件扩展名 | VARCHAR(30) | No | No | ||
fileuri | 文件路径标识,包括模板名. [theme name]:[filename] | VARCHAR(255) | No | No | ||
version | 版本号 | INT UNSIGNED | No | No | ||
theme | 模板名标识 | VARCHAR(50) | No | No | ||
memo | 备注 | VARCHAR(100) | No | No | ||
content | 文件内容 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes |
1.40. site_themes_tmpl
页面模板表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
id | 页面模板ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
platform | 模板终端\ | pc:电脑端;wap:无线端;mobile:mobile端; | VARCHAR(6) | Yes | pc | No |
tmpl_type | 对应前台页面标示符 | VARCHAR(20) | Yes | No | ||
tmpl_name | 名称 | VARCHAR(30) | Yes | No | ||
tmpl_path | 页面路径 | VARCHAR(100) | Yes | No | ||
theme | 对应模板 | VARCHAR(20) | Yes | No | ||
rel_file_id | 关联模板文件表:site_themes_file | INT UNSIGNED | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes |
1.41. site_widgets
挂件表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | 挂件ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
app | 如果是系统挂件, 此字段为应用名. 如果是模板挂件此字段为空 | VARCHAR(30) | Yes | No | |
theme | 如果是模板级挂件, 此字段为模板名. 如果是系统挂件此字段为空 | VARCHAR(30) | Yes | No | |
name | 挂件名 | VARCHAR(30) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_uniq | app, theme, name | No |
1.42. site_widgets_instance
挂件实例表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
widgets_id | 挂件实例ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
core_file | 挂件挂在模版的页面 | VARCHAR(50) | Yes | No | |
core_slot | 模版中提供给挂件位置序号 | SMALLINT UNSIGNED | Yes | 0 | No |
core_id | 位置的ID | VARCHAR(20) | No | No | |
widgets_type | 所属挂件的名称 | VARCHAR(30) | Yes | No | |
app | 所属的应用 | VARCHAR(30) | No | No | |
theme | 模版的名称 | VARCHAR(30) | No | No | |
widgets_order | 挂件顺序 | SMALLINT UNSIGNED | Yes | 5 | No |
title | 挂件自定义标题 | VARCHAR(100) | No | No | |
domid | 挂件id | VARCHAR(100) | No | No | |
classname | css class name | VARCHAR(100) | No | No | |
tpl | 模版的名称 | VARCHAR(100) | No | No | |
params | 配置参数 | LONGTEXT | No | No | |
modified | 修改时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | widgets_id | Yes | |
ind_wgbase | core_file, core_id, widgets_order | No | |
ind_wginfo | core_file, core_slot, widgets_order | No |
1.43. app:sysaftersales tables
1.44. sysaftersales_aftersales
售后申请
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
aftersales_bn | BIGINT UNSIGNED | Yes | No | ||
user_id | INT UNSIGNED | Yes | No | ||
shop_id | 店铺ID | INT UNSIGNED | No | No | |
aftersales_type | ONLY_REFUND:仅退款;REFUND_GOODS:退货退款;EXCHANGING_GOODS:换货; | VARCHAR(16) | Yes | ONLY_REFUND | No |
progress | 0:等待商家处理;1:商家接受申请,等待消费者回寄;2:消费者回寄,等待商家收货确认;3:商家已驳回;4:商家已处理;5:商家确认收货;6:平台驳回退款申请;7:平台已处理退款申请;8:同意退款,提交到平台,等待平台处理; | VARCHAR(1) | Yes | 0 | No |
status | 0:待处理;1:处理中;2:已处理;3:已驳回; | VARCHAR(1) | Yes | 0 | No |
tid | BIGINT UNSIGNED | Yes | No | ||
oid | BIGINT | Yes | No | ||
title | VARCHAR(90) | Yes | No | ||
num | INT UNSIGNED | No | No | ||
reason | VARCHAR(255) | No | No | ||
description | 申请描述 | VARCHAR(300) | No | No | |
evidence_pic | 图片凭证信息 | VARCHAR(5120) | No | No | |
shop_explanation | 商家处理申请说明 | VARCHAR(300) | No | No | |
admin_explanation | 平台处理申请说明 | VARCHAR(300) | No | No | |
refunds_reason | 商家退款备注 | VARCHAR(300) | No | No | |
sendback_data | 消费者提交退货物流信息 | LONGTEXT | No | No | |
sendconfirm_data | 商家重新发货物流信息 | LONGTEXT | No | No | |
created_time | INT UNSIGNED | No | No | ||
modified_time | INT UNSIGNED | No | No | ||
gift_data | 赠品数据 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | aftersales_bn | Yes | |
ind_user_id | user_id | No | |
ind_shop_id | shop_id | No | |
ind_aftersales_type | aftersales_type | No | |
ind_progress | progress | No | |
ind_status | status | No | |
ind_tid | tid | No | |
ind_oid | oid | No |
1.45. sysaftersales_refunds
退款申请表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
refunds_id | 退款申请ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
refund_bn | 退款申请编号 | VARCHAR(255) | No | No | ||
user_id | 会员id | INT UNSIGNED | No | No | ||
shop_id | 店铺id | INT UNSIGNED | No | No | ||
tid | 该退款单的主订单号 | VARCHAR(255) | No | No | ||
oid | 该退款单的订单号 | VARCHAR(255) | No | No | ||
aftersales_bn | 申请售后编号 | VARCHAR(255) | No | No | ||
refunds_type | 0:售后申请退款;1:取消订单退款;2:拒收订单退款; | VARCHAR(1) | Yes | 0 | No | |
status | 0:未审核;1:已完成退款;2:已驳回;3:商家审核通过;4:商家审核不通过;5:商家强制关单;6:平台强制关单; | VARCHAR(1) | Yes | 0 | No | |
refunds_reason | VARCHAR(255) | No | No | |||
order_price | NUMERIC(20, 3) | No | 0 | No | ||
total_price | NUMERIC(20, 3) | No | 0 | No | ||
refund_fee | NUMERIC(20, 3) | No | 0 | No | ||
points_fee | NUMERIC(20, 3) | No | 0 | No | ||
hongbao_fee | 红包支付金额 | NUMERIC(20, 3) | No | 0 | No | |
user_hongbao_id | 使用红包支付的ID集合 | VARCHAR(255) | No | No | ||
return_freight | 是否退运费\ | 2:退运费;3:不退运费; | VARCHAR(1) | No | 3 | No |
consume_point_fee | 抵扣的积分 | INT UNSIGNED | No | 0 | No | |
refund_point | 实退积分 | INT UNSIGNED | No | 0 | No | |
created_time | INT UNSIGNED | No | No | |||
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | refunds_id | Yes | |
ind_user_id | user_id | No | |
ind_shop_id | shop_id | No | |
ind_refunds_type | refunds_type | No | |
ind_status | status | No | |
ind_refund_bn | refund_bn | Yes |
1.46. app:sysapp tables
1.47. sysapp_widgets_instance
挂件实例表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
widgets_id | 挂件实例ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
tmpl | 页面 | VARCHAR(30) | Yes | No | |
widget | 挂件名称 | VARCHAR(30) | Yes | No | |
order_sort | 挂件排序 | SMALLINT UNSIGNED | Yes | 0 | No |
params | 配置参数 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | widgets_id | Yes | |
ind_tmpl | tmpl | No | |
ind_widget | widget | No |
1.48. app:syscategory tables
1.49. syscategory_brand
品牌表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
brand_id | 品牌id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
brand_name | 品牌名称 | VARCHAR(50) | Yes | No | |
brand_alias | 品牌别名 | VARCHAR(50) | No | No | |
brand_url | 品牌网址(保留字段) | VARCHAR(255) | No | No | |
order_sort | 排序 | INT UNSIGNED | No | 0 | No |
brand_desc | 品牌介绍(保留字段) | LONGTEXT | No | No | |
brand_logo | 品牌图片标识 | VARCHAR(255) | No | No | |
modified_time | INT UNSIGNED | No | No | ||
disabled | 失效 | TINYINT(1) | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | brand_id | Yes | |
ind_brand_name | brand_name | No | |
ind_ordernum | order_sort | No |
1.50. syscategory_cat
类别属性值有限表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | ||
---|---|---|---|---|---|---|---|
cat_id | 分类ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |||
parent_id | 分类父级ID | INT UNSIGNED | No | No | |||
cat_name | VARCHAR(100) | Yes | No | ||||
cat_logo | 一级分类logo | VARCHAR(255) | No | No | |||
cat_path | 分类路径(从根至本结点的路径,逗号分隔,首部有逗号) | VARCHAR(100) | No | , | No | ||
level | 1:一级分类;2:二级分类;3:三级分类; | VARCHAR(1) | No | 1 | No | ||
is_leaf | 是否叶子结点(true:是;false:否) | TINYINT(1) | Yes | 0 | No | ||
disabled | 是否屏蔽(true:是;false:否) | TINYINT(1) | Yes | 0 | No | ||
addon | 附加项 | LONGTEXT | No | No | |||
child_count | 子类别数量 | INT UNSIGNED | Yes | 0 | No | ||
params | 参数表结构(序列化) array(参数组名=>array(参数名1=>别名1 | 别名2,参数名2=>别名1 | 别名2)) | LONGTEXT | No | No | |
guarantee_money | NUMERIC(20, 3) | No | 0 | No | |||
platform_fee | NUMERIC(20, 3) | No | 0 | No | |||
cat_service_rates | NUMERIC(20, 3) | No | 0 | No | |||
order_sort | INT UNSIGNED | No | 0 | No | |||
modified_time | INT UNSIGNED | No | No | ||||
cat_template | 类目对应的模板 | VARCHAR(50) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | cat_id | Yes | |
ind_cat_path | cat_path | No | |
ind_cat_name | cat_name | No | |
ind_modified_time | modified_time | No | |
ind_ordersort | order_sort | No |
1.51. syscategory_cat_rel_brand
分类和品牌关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
cat_id | 商品分类ID | INT UNSIGNED | Yes | 0 | No |
brand_id | 品牌ID | INT UNSIGNED | Yes | 0 | No |
order_sort | 排序 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | cat_id, brand_id | Yes |
1.52. syscategory_cat_rel_prop
商品属性表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
prop_id | 属性ID | INT UNSIGNED | Yes | 0 | No |
cat_id | 分类ID | INT UNSIGNED | Yes | 0 | No |
order_sort | INT UNSIGNED | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | prop_id, cat_id | Yes | |
ind_cat_id | cat_id | No |
1.53. syscategory_prop_values
属性值表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
prop_value_id | 属性值ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
prop_id | 属性ID | INT UNSIGNED | Yes | 0 | No |
prop_value | 属性值 | VARCHAR(100) | Yes | No | |
prop_image | 属性图片 | VARCHAR(255) | No | No | |
order_sort | 排序 | INT UNSIGNED | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | prop_value_id | Yes | |
ind_prop_id | prop_id | No |
1.54. syscategory_props
属性表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
prop_id | 属性id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
prop_name | VARCHAR(50) | Yes | No | ||
type | VARCHAR(20) | No | No | ||
search | VARCHAR(20) | Yes | select | No | |
show | 是否显示 | VARCHAR(10) | Yes | No | |
is_def | 是否系统默认属性 | TINYINT(1) | Yes | 0 | No |
show_type | text:文字;image:图片; | VARCHAR(5) | Yes | text | No |
prop_type | spec:销售属性;nature:自然属性; | VARCHAR(6) | Yes | spec | No |
prop_memo | VARCHAR(50) | Yes | No | ||
order_sort | INT UNSIGNED | Yes | 1 | No | |
modified_time | INT UNSIGNED | No | No | ||
disabled | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | prop_id | Yes |
1.55. app:sysclearing tables
1.56. sysclearing_settlement
商家账号信息
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
settlement_no | BIGINT UNSIGNED | Yes | No | ||
shop_id | INT UNSIGNED | No | No | ||
tradecount | INT UNSIGNED | Yes | 0 | No | |
item_fee_amount | NUMERIC(20, 3) | Yes | 0 | No | |
post_fee_amount | NUMERIC(20, 3) | Yes | 0 | No | |
refund_fee_amount | NUMERIC(20, 3) | No | 0 | No | |
commission_fee_amount | NUMERIC(20, 3) | No | 0 | No | |
settlement_fee_amount | NUMERIC(20, 3) | No | 0 | No | |
settlement_status | 1:未结算;2:已结算; | VARCHAR(1) | No | 1 | No |
account_start_time | INT UNSIGNED | No | No | ||
account_end_time | INT UNSIGNED | No | No | ||
settlement_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | settlement_no | Yes | |
ind_shop_id | shop_id | No | |
ind_settlement_time | settlement_time | No |
1.57. sysclearing_settlement_detail
结算明细表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | settlement_detail_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
oid | 子订单编号 | BIGINT UNSIGNED | Yes | No | |
tid | 订单编号 | BIGINT UNSIGNED | Yes | No | |
shop_id | 所属商家 | INT UNSIGNED | Yes | No | |
settlement_time | INT UNSIGNED | No | No | ||
pay_time | INT UNSIGNED | No | No | ||
item_id | 商品id | INT UNSIGNED | Yes | No | |
sku_id | 货品id | INT UNSIGNED | Yes | No | |
bn | 明细商品的编码 | VARCHAR(45) | No | No | |
title | 商品标题 | VARCHAR(90) | Yes | No | |
spec_nature_info | sku描述 | LONGTEXT | No | No | |
price | 商品价格 | NUMERIC(20, 3) | No | No | |
num | 购买数量 | INT UNSIGNED | No | No | |
sku_properties_name | SKU的值 | VARCHAR(500) | No | No | |
divide_order_fee | 分摊之后的实付金额 | NUMERIC(20, 3) | No | No | |
part_mjz_discount | 优惠分摊 | NUMERIC(20, 3) | No | No | |
payment | 实付金额 | NUMERIC(20, 3) | No | No | |
post_fee | NUMERIC(20, 3) | Yes | No | ||
refund_fee | NUMERIC(20, 3) | No | No | ||
cat_service_rate | NUMERIC(20, 3) | No | 0 | No | |
commission_fee | NUMERIC(20, 3) | No | No | ||
settlement_fee | NUMERIC(20, 3) | No | No | ||
settlement_type | 1:普通结算;2:运费结算;3:售后结算;4:拒收结算; | VARCHAR(1) | No | 1 | No |
discount_fee | 子订单级订单优惠金额 | NUMERIC(20, 3) | No | No | |
adjust_fee | 手工调整金额 | NUMERIC(20, 3) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_shop_id | shop_id | No | |
ind_oid | oid | No | |
ind_tid | tid | No |
1.58. app:syscontent tables
1.59. syscontent_article
文章主表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
article_id | 文章ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
title | VARCHAR(255) | Yes | No | ||
article_logo | 文章默认logo | VARCHAR(255) | No | No | |
platform | pc:电脑端;wap:移动端; | VARCHAR(3) | Yes | No | |
node_id | INT UNSIGNED | Yes | No | ||
pubtime | 发布时间(无需精确到秒) | INT UNSIGNED | No | No | |
modified | 更新时间(精确到秒) | INT UNSIGNED | No | No | |
ifpub | 发布 | TINYINT(1) | No | 0 | No |
content | 文章内容 | LONGTEXT | No | No | |
type | 1:普通文章;2:单独页; | VARCHAR(1) | No | 1 | No |
tmpl_path | VARCHAR(255) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | article_id | Yes | |
ind_title | title | No | |
ind_node_id | node_id | No | |
ind_pubtime | pubtime | No |
1.60. syscontent_article_nodes
文章节点表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
node_id | 节点id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
parent_id | 父节点 | INT UNSIGNED | Yes | 0 | No |
node_depth | 节点深度 | SMALLINT | Yes | 0 | No |
node_name | 节点名称 | VARCHAR(255) | Yes | No | |
node_path | 节点路径 | VARCHAR(255) | No | No | |
has_children | 是否存在子节点 | TINYINT(1) | Yes | 0 | No |
ifpub | 发布 | TINYINT(1) | Yes | 0 | No |
order_sort | 排序 | INT UNSIGNED | Yes | 0 | No |
modified | 修改时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | node_id | Yes | |
ind_node_name | node_name | No | |
ind_order_sort | order_sort | No |
1.61. syscontent_article_shop
商家文章主表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
article_id | 文章ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
title | VARCHAR(255) | Yes | No | |||
platform | 发布终端\ | 0:电脑端和移动端;1:电脑端;2:移动端; | VARCHAR(1) | Yes | 0 | No |
node_id | 节点id | INT UNSIGNED | Yes | 0 | No | |
shop_id | 店铺ID | INT UNSIGNED | No | No | ||
pubtime | 发布时间(无需精确到秒) | INT UNSIGNED | No | No | ||
modified | 更新时间(精确到秒) | INT UNSIGNED | No | No | ||
content | 文章内容 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | article_id | Yes | |
ind_title | title | No | |
ind_node_id | node_id | No | |
ind_pubtime | pubtime | No |
1.62. syscontent_article_shop_nodes
文章节点表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
node_id | 节点id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 商家ID | INT UNSIGNED | Yes | 0 | No |
parent_id | 父节点 | INT UNSIGNED | Yes | 0 | No |
node_name | 节点名称 | VARCHAR(255) | Yes | No | |
order_sort | 排序 | INT UNSIGNED | Yes | 0 | No |
modified | 修改时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | node_id | Yes | |
ind_node_name | node_name | No | |
ind_order_sort | order_sort | No |
1.63. app:sysdecorate tables
1.64. sysdecorate_widgets_instance
挂件实例表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
widgets_id | 挂件实例ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | INT UNSIGNED | Yes | No | ||
widgets_type | 所属挂件的名称 | VARCHAR(30) | Yes | No | |
theme | 模版的名称 | VARCHAR(30) | No | No | |
title | 挂件自定义标题 | VARCHAR(100) | No | No | |
params | 配置参数 | LONGTEXT | No | No | |
modified_time | 修改时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | widgets_id | Yes | |
ind_wgbase | shop_id, widgets_type | No |
1.65. app:sysim tables
1.66. sysim_account_webcall_shop
保存365webcall的账户数据
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
shop_id | 店铺编号id,0标示平台 | VARCHAR(255) | Yes | Yes | |
邮箱 | VARCHAR(200) | Yes | No | ||
use_im | 是否开启webcall客服的使用 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | shop_id | Yes |
1.67. app:sysitem tables
1.68. sysitem_item
商品表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
item_id | item_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 店铺id | INT UNSIGNED | Yes | No | ||
cat_id | 商品类目ID | INT UNSIGNED | Yes | No | ||
brand_id | 品牌 | INT UNSIGNED | Yes | No | ||
shop_cat_id | 商家自定义分类id | VARCHAR(255) | Yes | No | ||
title | 商品标题 | VARCHAR(90) | Yes | No | ||
sub_title | 商品子标题 | VARCHAR(200) | No | No | ||
bn | bn | VARCHAR(45) | Yes | No | ||
price | 商品价格 | NUMERIC(20, 3) | Yes | No | ||
cost_price | 商品成本价格 | NUMERIC(20, 3) | No | No | ||
mkt_price | 商品市场价格 | NUMERIC(20, 3) | Yes | No | ||
show_mkt_price | 是否在商品页展示原价 | TINYINT(1) | No | 0 | No | |
weight | 商品重量 | NUMERIC(20, 3) | Yes | 0 | No | |
unit | 计价单位 | VARCHAR(10) | Yes | 件 | No | |
image_default_id | 商品默认图 | VARCHAR(255) | No | No | ||
list_image | 商品图片 | LONGTEXT | No | No | ||
order_sort | 排序 | INT UNSIGNED | No | 0 | No | |
modified_time | 商品最后更新时间 | INT UNSIGNED | Yes | No | ||
has_discount | 是否支持会员打折 | TINYINT(1) | No | 0 | No | |
is_virtual | 是否是虚拟商品 | TINYINT(1) | No | 0 | No | |
is_timing | 是否定时上下架 | TINYINT(1) | No | 0 | No | |
violation | 是否违规 | TINYINT(1) | No | 0 | No | |
is_selfshop | 是否自营 | TINYINT(1) | No | 0 | No | |
nospec | TINYINT(1) | Yes | 0 | No | ||
spec_desc | 销售属性序列化 | LONGTEXT | No | No | ||
props_name | 商品属性 | LONGTEXT | No | No | ||
params | 商品参数序列化 | LONGTEXT | No | No | ||
sub_stock | 减库存方式\ | 0:付款减库存;1:下单减库存; | VARCHAR(1) | No | 1 | No |
outer_id | 商家外部编码 | VARCHAR(32) | No | No | ||
is_offline | 是否是线下商品 | TINYINT(1) | No | 0 | No | |
barcode | 商品级别的条形码 | VARCHAR(128) | No | No | ||
disabled | disabled | TINYINT(1) | Yes | 0 | No | |
use_platform | 使用平台\ | 0:全部;1:pc端;2:wap端; | VARCHAR(1) | No | 0 | No |
dlytmpl_id | INT UNSIGNED | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | item_id | Yes | |
ind_title | title | No | |
ind_cat_id | cat_id | No | |
ind_shop_id | shop_id | No | |
ind_brand_id | brand_id | No | |
ind_shop_cat_id | shop_cat_id | No | |
ind_is_selfshop | is_selfshop | No | |
ind_bn | bn | No |
1.69. sysitem_item_count
商品次数表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
item_id | 商品id | INT UNSIGNED | Yes | No | |
sold_quantity | 商品销量 | INT UNSIGNED | No | 0 | No |
rate_count | 评论次数 | INT UNSIGNED | Yes | 0 | No |
rate_good_count | 好评次数 | INT UNSIGNED | Yes | 0 | No |
rate_neutral_count | 中评次数 | INT UNSIGNED | Yes | 0 | No |
rate_bad_count | 差评次数 | INT UNSIGNED | Yes | 0 | No |
view_count | 浏览次数 | INT UNSIGNED | Yes | 0 | No |
buy_count | 购买次数 | INT UNSIGNED | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | item_id | Yes |
1.70. sysitem_item_desc
商品详情表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
item_id | 商品id | INT UNSIGNED | Yes | No | |
pc_desc | 宝贝详情 | LONGTEXT | No | No | |
wap_desc | Wap宝贝详情 | LONGTEXT | No | No | |
wireless_desc | 无线端宝贝详情 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | item_id | Yes |
1.71. sysitem_item_nature_props
商品自然属性信息表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
item_id | 商品ID | INT UNSIGNED | Yes | 0 | No |
prop_id | 自然属性ID | INT UNSIGNED | Yes | 0 | No |
prop_value_id | 自然属性值ID | INT UNSIGNED | Yes | 0 | No |
pv_type | select:下拉框select;text:输入值text; | VARCHAR(6) | Yes | select | No |
pv_number | INT UNSIGNED | No | No | ||
pv_str | VARCHAR(255) | No | No | ||
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | item_id, prop_id | Yes |
1.72. sysitem_item_promotion
商品关联的促销表(新)
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
item_id | 商品ID | INT UNSIGNED | Yes | No | |
promotion_id | 促销id | INT UNSIGNED | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | item_id, promotion_id | Yes |
1.73. sysitem_item_status
商品上下架状态表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
item_id | 商品 ID | INT UNSIGNED | Yes | No | ||
shop_id | 店铺id | INT UNSIGNED | Yes | No | ||
approve_status | 商品状态\ | pending:待审核;refuse:审核拒绝;onsale:出售中;instock:库中; | VARCHAR(7) | Yes | instock | No |
reason | 审核不通过原因 | VARCHAR(500) | No | No | ||
list_time | 上架时间 | INT UNSIGNED | No | No | ||
delist_time | 下架时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | item_id | Yes | |
ind_shop_id | shop_id | No | |
ind_list_time | list_time | No |
1.74. sysitem_item_store
商品总库存表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
item_id | 商品 ID | INT UNSIGNED | Yes | No | |
store | 总商品数量 | INT UNSIGNED | Yes | 0 | No |
freez | sku预占库存总和 | INT UNSIGNED | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | item_id | Yes |
1.75. sysitem_sku
货品表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
sku_id | sku_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
item_id | 商品id | INT UNSIGNED | Yes | No | ||
title | 商品标题 | VARCHAR(90) | Yes | No | ||
bn | 商品编号 | VARCHAR(30) | Yes | No | ||
price | 商品价格 | NUMERIC(20, 3) | Yes | No | ||
cost_price | 成本价 | NUMERIC(20, 3) | No | 0 | No | |
mkt_price | 原价 | NUMERIC(20, 3) | No | 0 | No | |
barcode | 条形码 | VARCHAR(32) | No | No | ||
weight | 商品重量 | NUMERIC(20, 3) | Yes | 0 | No | |
created_time | 创建时间 | INT UNSIGNED | No | No | ||
modified_time | 最后更新时间 | INT UNSIGNED | No | No | ||
properties | sku销售属性 | LONGTEXT | No | No | ||
spec_info | 物品描述 | LONGTEXT | No | No | ||
spec_desc | LONGTEXT | No | No | |||
status | sku状态\ | normal:正常;delete:删除; | VARCHAR(6) | No | normal | No |
outer_id | 商家设置的外部id | VARCHAR(32) | No | No | ||
shop_id | 店铺id | INT UNSIGNED | Yes | 0 | No | |
image_default_id | 商品默认图 | VARCHAR(255) | No | No | ||
cat_id | 商品类目ID | INT UNSIGNED | Yes | 0 | No | |
brand_id | 品牌 | INT UNSIGNED | Yes | 0 | No | |
shop_cat_id | 商家自定义分类id | VARCHAR(255) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | sku_id | Yes | |
ind_item_id | item_id | No | |
ind_title | title | No | |
ind_bn | bn | No | |
ind_barcode | barcode | No | |
ind_cat_id | cat_id | No | |
ind_shop_id | shop_id | No | |
ind_brand_id | brand_id | No | |
ind_shop_cat_id | shop_cat_id | No |
1.76. sysitem_sku_store
商品库存表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
item_id | 商品 ID | INT UNSIGNED | Yes | No | |
sku_id | sku ID | INT UNSIGNED | Yes | No | |
store | 商品数量 | INT UNSIGNED | Yes | 0 | No |
freez | sku预占库存 | INT UNSIGNED | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | item_id, sku_id | Yes | |
ind_sku_id | sku_id | No | |
ind_item_id | item_id | No |
1.77. sysitem_spec_index
商品规格索引表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
prop_value_id | 销售属性值ID | INT UNSIGNED | Yes | 0 | No |
sku_id | sku ID | INT UNSIGNED | Yes | 0 | No |
cat_id | 商品三级分类ID | INT UNSIGNED | Yes | 0 | No |
prop_id | 销售属性ID | INT UNSIGNED | Yes | 0 | No |
item_id | 商品ID | INT UNSIGNED | Yes | 0 | No |
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | prop_value_id, sku_id | Yes | |
ind_cat_id | cat_id | No | |
ind_prop_id | prop_id | No | |
ind_prop_value_id | prop_value_id | No |
1.78. app:syslogistics tables
1.79. syslogistics_delivery
发货单表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
delivery_id | 配送流水号 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
tid | 订单号 | VARCHAR(100) | No | No | ||
user_id | 订货会员ID | INT UNSIGNED | No | No | ||
seller_id | 商家账号 | INT UNSIGNED | No | No | ||
shop_id | 店铺ID | INT UNSIGNED | No | No | ||
post_fee | 配送费用 | NUMERIC(20, 3) | Yes | 0 | No | |
is_protect | 是否保价 | TINYINT(1) | Yes | 0 | No | |
dlytmpl_id | 配送方式(货到付款、EMS...) | VARCHAR(255) | No | No | ||
logi_id | 物流公司ID | VARCHAR(50) | No | No | ||
logi_name | 物流公司名称 | VARCHAR(100) | No | No | ||
corp_code | 物流公司代码 | VARCHAR(200) | No | No | ||
logi_no | 物流单号 | VARCHAR(50) | No | No | ||
receiver_name | 收货人姓名 | VARCHAR(50) | No | No | ||
receiver_state | 收货人所在省 | VARCHAR(20) | No | No | ||
receiver_city | 收货人所在市 | VARCHAR(20) | No | No | ||
receiver_district | 收货人所在地区 | VARCHAR(20) | No | No | ||
receiver_address | 收货人详细地址 | VARCHAR(200) | No | No | ||
receiver_zip | 收货人邮编 | VARCHAR(20) | No | No | ||
receiver_mobile | 收货人手机号 | VARCHAR(20) | No | No | ||
receiver_phone | 收货人电话 | VARCHAR(20) | No | No | ||
t_begin | 单据生成时间 | INT UNSIGNED | No | No | ||
t_send | 单据结束时间 | INT UNSIGNED | No | No | ||
t_confirm | 单据确认时间 | INT UNSIGNED | No | No | ||
op_name | 操作者 | VARCHAR(50) | No | No | ||
status | 状态\ | succ:成功到达;failed:发货失败;cancel:已取消;lost:货物丢失;progress:运送中;timeout:超时;ready:准备发货; | VARCHAR(8) | Yes | ready | No |
memo | 备注 | LONGTEXT | No | No | ||
disabled | 无效 | TINYINT(1) | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | delivery_id | Yes | |
ind_disabled | disabled | No | |
ind_logi_no | logi_no | No |
1.80. syslogistics_delivery_detail
发货/退货单明细表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
detail_id | 序号 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
delivery_id | 发货单号 | BIGINT UNSIGNED | Yes | 0 | No | |
oid | 发货明细子订单号 | BIGINT UNSIGNED | No | 0 | No | |
item_type | 商品类型\ | item:商品;gift:赠品;pkg:捆绑商品;adjunct:配件商品; | VARCHAR(7) | Yes | item | No |
sku_id | SKU ID | BIGINT UNSIGNED | Yes | 0 | No | |
sku_bn | sku编号 | VARCHAR(30) | No | No | ||
sku_title | sku名称 | VARCHAR(200) | No | No | ||
number | 发货数量 | DOUBLE PRECISION | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | detail_id | Yes | |
ind_delivery_id | delivery_id | No | |
ind_oid | oid | No |
1.81. syslogistics_dlycorp
物流公司表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
corp_id | 物流公司ID | SMALLINT AUTO_INCREMENT | Yes | Yes | |
corp_code | 物流公司代码 | VARCHAR(200) | Yes | No | |
full_name | 物流公司全名 | VARCHAR(200) | No | No | |
corp_name | 物流公司简称 | VARCHAR(200) | Yes | No | |
website | 物流公司网址 | VARCHAR(100) | No | No | |
request_url | 查询接口网址 | VARCHAR(100) | No | No | |
order_sort | 排序 | INT UNSIGNED | Yes | 0 | No |
custom | TINYINT(1) | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | corp_id | Yes | |
ind_corp_code | corp_code | No |
1.82. syslogistics_dlytmpl
快递模板配置表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
template_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |||
shop_id | 店铺名称 | INT UNSIGNED | Yes | No | ||
name | 运费模板名称 | VARCHAR(50) | No | No | ||
is_free | 是否包邮\ | 0:自定义运费;1:卖家承担运费; | VARCHAR(1) | No | 0 | No |
valuation | 运费计算参数来源\ | 1:按重量;2:按件数;3:按金额;4:按体积; | VARCHAR(1) | No | 1 | No |
protect | 物流保价 | TINYINT(1) | Yes | 0 | No | |
protect_rate | 保价费率 | NUMERIC(6, 3) | No | No | ||
minprice | 保价费最低值 | NUMERIC(10, 2) | Yes | 0.00 | No | |
status | 是否开启\ | off:关闭;on:启用; | VARCHAR(3) | No | on | No |
fee_conf | 运费模板中运费信息对象,包含默认运费和指定地区运费 | LONGTEXT | No | No | ||
free_conf | 指定包邮的条件 | LONGTEXT | No | No | ||
create_time | 创建时间 | INT UNSIGNED | No | No | ||
modifie_time | 最后修改时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | template_id | Yes | |
ind_shop_temp_id | shop_id, template_id | No | |
ind_shop_id | shop_id | No |
1.83. syslogistics_ziti
自提点表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | 自增ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
name | 自提点名称 | VARCHAR(255) | No | No | |
area_state_id | 自提地区ID(省) | VARCHAR(255) | Yes | No | |
area_city_id | 自提地区ID(城市) | VARCHAR(255) | Yes | No | |
area_district_id | 自提地区ID(区,县) | VARCHAR(255) | Yes | No | |
area | 地区ID | VARCHAR(255) | Yes | No | |
addr | 地址 | VARCHAR(255) | No | No | |
tel | 电话或者手机号码 | VARCHAR(50) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_area_state_id | area_state_id | No | |
ind_area_city_id | area_city_id | No | |
ind_area_district_id | area_district_id | No |
1.84. app:sysopen tables
1.85. sysopen_develop
开发者账号绑定表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
develop_id | 开发者ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
name | 开发者名称 | VARCHAR(255) | No | No | ||
key | 访问api时用的key | VARCHAR(255) | No | No | ||
secret | 访问api时用的secret | VARCHAR(255) | No | No | ||
contact_type | 商户状态\ | notallowopen:禁止接入;applyforopen:申请接入;openstandard:标准接入; | VARCHAR(12) | Yes | openstandard | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | develop_id | Yes |
1.86. sysopen_keys
店铺请求开放api的key和secret
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
shop_id | 对应的商户id | VARCHAR(255) | Yes | No | ||
key | 访问api时用的key | VARCHAR(255) | No | No | ||
secret | 访问api时用的secret | VARCHAR(255) | No | No | ||
contact_type | 商户状态\ | notallowopen:禁止接入;applyforopen:申请接入;openstandard:标准接入; | VARCHAR(12) | Yes | No | |
mark | 备注 | VARCHAR(255) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | shop_id | Yes |
1.87. sysopen_shopconf
店铺请求开放api的key和secret
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
shop_id | 对应的商户id | VARCHAR(255) | Yes | No | ||
develop_mode | 开发者模式配置\ | DEVELOP:开发者模式;PRODUCT:运营商模式; | VARCHAR(7) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | shop_id | Yes |
1.88. app:syspromotion tables
1.89. syspromotion_activity
活动规则表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
activity_id | 活动id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
activity_name | 活动名称 | VARCHAR(100) | Yes | No | |
activity_tag | 活动标签 | VARCHAR(255) | Yes | No | |
activity_desc | 活动描述 | LONGTEXT | No | No | |
apply_begin_time | 申请活动开始时间 | INT UNSIGNED | Yes | 0 | No |
apply_end_time | 申请活动结束时间 | INT UNSIGNED | Yes | 0 | No |
release_time | 发布时间 | INT UNSIGNED | Yes | 0 | No |
start_time | 活动生效开始时间 | INT UNSIGNED | Yes | 0 | No |
end_time | 活动生效结束时间 | INT UNSIGNED | Yes | 0 | No |
buy_limit | 用户限购数量 | INT UNSIGNED | Yes | 0 | No |
enroll_limit | 店铺报名限制数量 | INT UNSIGNED | Yes | 0 | No |
limit_cat | 报名类目限制 | LONGTEXT | Yes | 0 | No |
shoptype | 店铺类型限制 | VARCHAR(255) | No | No | |
discount_min | 最小折扣 | INT UNSIGNED | Yes | No | |
discount_max | 最大折扣 | INT UNSIGNED | Yes | No | |
mainpush | 是否主推活动 | TINYINT(1) | No | 0 | No |
slide_images | 轮播广告图 | VARCHAR(500) | No | No | |
enabled | 是否启用 | TINYINT(1) | No | 0 | No |
created_time | 创建时间 | INT UNSIGNED | No | No | |
remind_enabled | 是否启用开售提醒 | TINYINT(1) | No | No | |
remind_way | 提醒方式 | VARCHAR(100) | No | No | |
remind_time | 提前提醒时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | activity_id | Yes | |
ind_created_time | created_time | No |
1.90. syspromotion_activity_item
活动商品表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |||
activity_id | 活动id | INT UNSIGNED | No | No | ||
shop_id | 商家店铺id | INT UNSIGNED | Yes | No | ||
item_id | 商品id | INT UNSIGNED | No | No | ||
cat_id | 商品关联的三级类目id | INT UNSIGNED | No | No | ||
title | 商品名称 | VARCHAR(90) | Yes | No | ||
item_default_image | 商品原默认图 | VARCHAR(255) | No | No | ||
price | 商品原价 | NUMERIC(20, 3) | Yes | No | ||
activity_price | 促销价格 | NUMERIC(20, 3) | No | No | ||
sales_count | 本活动销量 | INT UNSIGNED | No | 0 | No | |
verify_status | 审核状态\ | pending:待审核;refuse:审核被拒绝;agree:审核通过; | VARCHAR(7) | Yes | pending | No |
start_time | 活动生效开始时间 | INT UNSIGNED | Yes | 0 | No | |
end_time | 活动生效结束时间 | INT UNSIGNED | Yes | 0 | No | |
activity_tag | 活动标签 | VARCHAR(255) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_activitywithitem | activity_id, item_id | Yes | |
ind_shop_id | shop_id | No | |
ind_cat_id | cat_id | No | |
ind_item_id | item_id | No |
1.91. syspromotion_activity_register
活动报名表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
id | id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 店铺id | INT UNSIGNED | Yes | No | ||
activity_id | 活动id | INT UNSIGNED | Yes | No | ||
verify_status | 审核状态\ | pending:待审核;refuse:审核被拒绝;agree:审核通过; | VARCHAR(7) | Yes | pending | No |
valid_status | 有效状态 | TINYINT(1) | Yes | 1 | No | |
refuse_reason | 拒绝原因 | VARCHAR(255) | No | No | ||
modified_time | 报名更新时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_activitywithshop | activity_id, shop_id | Yes | |
ind_verify_status | verify_status | No | |
ind_modified_time | modified_time | No |
1.92. syspromotion_coupon
优惠券表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
coupon_id | 优惠券方案id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | ||
coupon_name | 优惠券名称 | VARCHAR(255) | Yes | No | ||
coupon_desc | 优惠券描述 | VARCHAR(255) | Yes | No | ||
used_platform | 使用平台\ | 0:商家全场可用;1:只能用于pc;2:只能用于wap; | VARCHAR(1) | Yes | 0 | No |
valid_grade | VARCHAR(255) | Yes | No | |||
limit_money | 满足条件金额 | NUMERIC(20, 3) | No | 0 | No | |
deduct_money | 优惠金额 | NUMERIC(20, 3) | No | 0 | No | |
max_gen_quantity | 最大优惠券号码数量 | INT UNSIGNED | No | 0 | No | |
send_couponcode_quantity | 已生成的优惠券号码数量 | INT UNSIGNED | No | 0 | No | |
use_couponcode_quantity | 已使用的优惠券号码数量 | INT UNSIGNED | No | 0 | No | |
userlimit_quantity | 用户总计可领取优惠券数量 | INT UNSIGNED | No | 0 | No | |
use_bound | 使用范围\ | 0:商家全场可用;1:指定商品可用; | VARCHAR(1) | No | 1 | No |
coupon_prefix | 优惠券前缀 | VARCHAR(50) | Yes | No | ||
coupon_key | 优惠券生成的key | VARCHAR(20) | Yes | No | ||
cansend_start_time | 发优惠券开始时间 | INT UNSIGNED | No | No | ||
cansend_end_time | 发优惠券结束时间 | INT UNSIGNED | No | No | ||
canuse_start_time | 优惠券生效时间 | INT UNSIGNED | No | No | ||
canuse_end_time | 优惠券失效时间 | INT UNSIGNED | No | No | ||
created_time | 建券时间 | INT UNSIGNED | No | No | ||
promotion_tag | 促销标签 | VARCHAR(15) | Yes | No | ||
coupon_status | 促销状态\ | non-reviewed:未审核;pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(12) | Yes | agree | No |
reason | 审核不通过原因 | VARCHAR(500) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | coupon_id | Yes | |
ind_shop_id | shop_id | No | |
ind_created_time | created_time | No | |
ind_coupon_status | coupon_status | No |
1.93. syspromotion_coupon_item
商品与促销规则关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
coupon_id | 优惠券ID | INT UNSIGNED | Yes | No | |
item_id | 商品ID | INT UNSIGNED | Yes | No | |
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | |
leaf_cat_id | 商品关联的平台叶子节点分类ID | INT UNSIGNED | Yes | No | |
title | 商品名称 | VARCHAR(90) | Yes | No | |
image_default_id | 商品图片 | VARCHAR(255) | No | No | |
price | 商品价格 | NUMERIC(20, 3) | Yes | No | |
promotion_tag | VARCHAR(10) | Yes | 0 | No | |
canuse_start_time | 起始可使用时间 | INT UNSIGNED | No | 0 | No |
canuse_end_time | 截止可使用时间 | INT UNSIGNED | No | 0 | No |
status | 促销状态 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | coupon_id, item_id | Yes | |
ind_cat_id | leaf_cat_id | No |
1.94. syspromotion_freepostage
免邮表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
freepostage_id | 免邮方案id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | ||
freepostage_name | 免邮名称 | VARCHAR(255) | Yes | No | ||
freepostage_desc | 免邮描述 | VARCHAR(255) | Yes | No | ||
used_platform | 使用平台\ | 0:商家全场可用;1:只能用于pc;2:只能用于wap; | VARCHAR(1) | Yes | 0 | No |
valid_grade | VARCHAR(255) | Yes | No | |||
gentype | 生成类型\ | 0:独立添加;1:绑定促销; | VARCHAR(1) | No | 0 | No |
condition_type | 免邮条件标准\ | money:按金额;quantity:按数量; | VARCHAR(8) | No | money | No |
limit_money | 满足条件金额 | NUMERIC(20, 3) | No | 0 | No | |
limit_quantity | 满足条件数量 | INT UNSIGNED | No | No | ||
use_bound | 使用范围\ | 0:商家全场可用;1:指定商品可用; | VARCHAR(1) | No | 0 | No |
start_time | 免邮生效时间 | INT UNSIGNED | No | No | ||
end_time | 免邮失效时间 | INT UNSIGNED | No | No | ||
created_time | 创建时间 | INT UNSIGNED | No | No | ||
promotion_tag | 促销标签 | VARCHAR(15) | Yes | No | ||
freepostage_status | 促销状态\ | pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(7) | Yes | agree | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | freepostage_id | Yes | |
ind_freepostage_status | freepostage_status | No | |
ind_shop_id | shop_id | No |
1.95. syspromotion_freepostage_item
商品与促销规则关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
freepostage_id | 满减ID | INT UNSIGNED | Yes | No | |
item_id | 商品ID | INT UNSIGNED | Yes | No | |
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | |
leaf_cat_id | 商品关联的平台叶子节点分类ID | INT UNSIGNED | Yes | No | |
title | 商品名称 | VARCHAR(90) | Yes | No | |
image_default_id | 商品图片 | VARCHAR(255) | No | No | |
price | 商品价格 | NUMERIC(20, 3) | Yes | No | |
promotion_tag | VARCHAR(10) | Yes | 0 | No | |
start_time | 起始时间 | INT UNSIGNED | No | 0 | No |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No |
status | 是否生效中 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | freepostage_id, item_id | Yes | |
ind_promotion_tag | promotion_tag | No | |
ind_leaf_cat_id | leaf_cat_id | No |
1.96. syspromotion_fulldiscount
满折促销规则表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
fulldiscount_id | 满折规则id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | ||
fulldiscount_name | 满折规则名称 | VARCHAR(255) | Yes | No | ||
fulldiscount_desc | 规则描述 | LONGTEXT | No | No | ||
used_platform | 使用平台\ | 0:商家全场可用;1:只能用于pc;2:只能用于wap; | VARCHAR(1) | Yes | 0 | No |
use_bound | 使用范围\ | 0:商家全场可用;1:指定商品可用; | VARCHAR(1) | No | 1 | No |
valid_grade | VARCHAR(255) | No | No | |||
condition_value | VARCHAR(255) | No | No | |||
join_limit | INT UNSIGNED | Yes | 1 | No | ||
free_postage | TINYINT(1) | No | 0 | No | ||
created_time | 创建时间 | INT UNSIGNED | No | No | ||
start_time | 起始时间 | INT UNSIGNED | No | 0 | No | |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No | |
promotion_tag | 促销标签 | VARCHAR(15) | Yes | No | ||
fulldiscount_status | 促销状态\ | non-reviewed:未审核;pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(12) | Yes | agree | No |
reason | 审核不通过原因 | VARCHAR(500) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | fulldiscount_id | Yes | |
ind_shop_id | shop_id | No | |
ind_created_time | created_time | No | |
ind_fulldiscount_status | fulldiscount_status | No |
1.97. syspromotion_fulldiscount_item
商品与促销规则关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
fulldiscount_id | 满折ID | INT UNSIGNED | Yes | No | |
item_id | 商品ID | INT UNSIGNED | Yes | No | |
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | |
leaf_cat_id | 商品关联的平台叶子节点分类ID | INT UNSIGNED | Yes | No | |
title | 商品名称 | VARCHAR(90) | Yes | No | |
image_default_id | 商品图片 | VARCHAR(250) | No | No | |
price | 商品价格 | NUMERIC(20, 3) | Yes | No | |
promotion_tag | VARCHAR(10) | Yes | 0 | No | |
start_time | 起始时间 | INT UNSIGNED | No | 0 | No |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No |
status | 是否生效中 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | fulldiscount_id, item_id | Yes | |
ind_shop_id | shop_id | No | |
ind_leaf_cat_id | leaf_cat_id | No |
1.98. syspromotion_fullminus
满减促销规则表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
fullminus_id | 满减规则id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | ||
fullminus_name | 满减规则名称 | VARCHAR(255) | Yes | No | ||
fullminus_desc | 规则描述 | LONGTEXT | No | No | ||
used_platform | 使用平台\ | 0:商家全场可用;1:只能用于pc;2:只能用于wap; | VARCHAR(1) | Yes | 0 | No |
use_bound | 使用范围\ | 0:商家全场可用;1:指定商品可用; | VARCHAR(1) | No | 1 | No |
valid_grade | VARCHAR(255) | No | No | |||
condition_value | VARCHAR(255) | No | No | |||
join_limit | INT UNSIGNED | Yes | 1 | No | ||
canjoin_repeat | TINYINT(1) | Yes | 0 | No | ||
free_postage | TINYINT(1) | No | 0 | No | ||
created_time | 创建时间 | INT UNSIGNED | No | No | ||
start_time | 起始时间 | INT UNSIGNED | No | 0 | No | |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No | |
promotion_tag | 促销标签 | VARCHAR(15) | Yes | No | ||
fullminus_status | 促销状态\ | non-reviewed:未审核;pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(12) | Yes | agree | No |
reason | 审核不通过原因 | VARCHAR(500) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | fullminus_id | Yes | |
ind_shop_id | shop_id | No | |
ind_created_time | created_time | No | |
ind_fullminus_status | fullminus_status | No |
1.99. syspromotion_fullminus_item
商品与促销规则关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
fullminus_id | 满减ID | INT UNSIGNED | Yes | No | |
item_id | 商品ID | INT UNSIGNED | Yes | No | |
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | |
leaf_cat_id | 商品关联的平台叶子节点分类ID | INT UNSIGNED | Yes | No | |
title | 商品名称 | VARCHAR(90) | Yes | No | |
image_default_id | 商品图片 | VARCHAR(255) | No | No | |
price | 商品价格 | NUMERIC(20, 3) | Yes | No | |
promotion_tag | VARCHAR(10) | Yes | 0 | No | |
start_time | 起始时间 | INT UNSIGNED | No | 0 | No |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No |
status | 是否生效中 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | fullminus_id, item_id | Yes | |
ind_shop_id | shop_id | No | |
ind_leaf_cat_id | leaf_cat_id | No |
1.100. syspromotion_gift
优惠券表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
gift_id | 赠品方案id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | ||
created_time | 创建时间 | INT UNSIGNED | No | No | ||
start_time | 开始时间 | INT UNSIGNED | No | No | ||
end_time | 结束时间 | INT UNSIGNED | No | No | ||
promotion_tag | 促销标签 | VARCHAR(15) | Yes | gift | No | |
gift_name | 赠品活动名称 | VARCHAR(255) | Yes | No | ||
gift_desc | 赠品规则描述 | VARCHAR(255) | Yes | No | ||
valid_grade | 会员级别集合 | VARCHAR(255) | Yes | No | ||
condition_type | 送赠品条件标准\ | quantity:按数量; | VARCHAR(8) | No | quantity | No |
limit_quantity | 满足条件数量 | INT UNSIGNED | No | No | ||
gift_status | 促销状态\ | non-reviewed:未审核;pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(12) | Yes | agree | No |
reason | 审核不通过原因 | VARCHAR(500) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | gift_id | Yes | |
ind_shop_id | shop_id | No | |
ind_created_time | created_time | No | |
ind_gift_status | gift_status | No |
1.101. syspromotion_gift_item
商品与促销规则赠品关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
gift_id | 赠品方案id | INT UNSIGNED | Yes | No | |
item_id | 商品ID | INT UNSIGNED | Yes | No | |
title | 商品名称 | VARCHAR(90) | Yes | No | |
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | |
leaf_cat_id | 商品关联的平台叶子节点分类ID | INT UNSIGNED | Yes | No | |
promotion_tag | VARCHAR(10) | Yes | gift | No | |
start_time | 起始时间 | INT UNSIGNED | No | 0 | No |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No |
status | 是否生效中 | TINYINT(1) | Yes | 1 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | gift_id, item_id | Yes | |
ind_cat_id | leaf_cat_id | No |
1.102. syspromotion_gift_sku
参与赠品促销的货品关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
gift_id | 赠品方案id | INT UNSIGNED | Yes | No | |
sku_id | 货品ID | INT UNSIGNED | Yes | No | |
item_id | 商品ID | INT UNSIGNED | Yes | No | |
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | |
gift_num | 赠品数量 | INT UNSIGNED | Yes | No | |
start_time | 起始时间 | INT UNSIGNED | No | 0 | No |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No |
status | 是否生效中 | TINYINT(1) | Yes | 1 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | gift_id, sku_id | Yes | |
ind_item_id | item_id | No |
1.103. syspromotion_hongbao
平台红包规则表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
hongbao_id | 红包规则id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
name | 红包名称 | VARCHAR(50) | Yes | No | ||
status | 红包发放状态\ | pending:未开始;active:活动中;stop:终止;success:红包已发完; | VARCHAR(7) | Yes | pending | No |
used_platform | 使用平台\ | all:商家全场可用;pc:只能用于pc;wap:只能用于wap; | VARCHAR(3) | Yes | all | No |
hongbao_type | 红包类型\ | fixed:定额红包; | VARCHAR(5) | Yes | fixed | No |
total_money | 可领取的红包总金额 | NUMERIC(20, 3) | Yes | No | ||
total_num | 可领取的红包总数量 | INT UNSIGNED | Yes | No | ||
user_total_money | 用户可领取红包的总金额 | NUMERIC(20, 3) | Yes | No | ||
user_total_num | 用户可领取红包的总数量 | INT UNSIGNED | Yes | No | ||
get_start_time | 领取红包起始时间 | INT UNSIGNED | Yes | 0 | No | |
get_end_time | 领取红包截止时间 | INT UNSIGNED | Yes | 0 | No | |
use_start_time | 使用红包起始时间 | INT UNSIGNED | Yes | 0 | No | |
use_end_time | 使用红包截止时间 | INT UNSIGNED | Yes | 0 | No | |
hongbao_list | 生成红包详细结构 | LONGTEXT | Yes | No | ||
created_time | 创建时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | hongbao_id | Yes |
1.104. syspromotion_package
组合促销促销规则表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
package_id | 组合促销规则id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | ||
package_name | 组合促销名称 | VARCHAR(50) | Yes | No | ||
package_desc | 规则描述 | LONGTEXT | No | No | ||
used_platform | 使用平台\ | 0:商家全场可用;1:只能用于pc;2:只能用于wap; | VARCHAR(1) | Yes | 0 | No |
use_bound | 使用范围\ | 0:商家全场可用;1:指定商品可用; | VARCHAR(1) | No | 1 | No |
valid_grade | 会员级别集合 | VARCHAR(255) | No | No | ||
package_total_price | 组合促销各商品总价 | NUMERIC(20, 3) | Yes | 0 | No | |
free_postage | 是否免邮 | TINYINT(1) | No | 0 | No | |
created_time | 创建时间 | INT UNSIGNED | No | No | ||
start_time | 起始时间 | INT UNSIGNED | No | 0 | No | |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No | |
promotion_tag | 促销标签 | VARCHAR(15) | Yes | No | ||
package_status | 促销状态\ | non-reviewed:未审核;pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(12) | Yes | agree | No |
reason | 审核不通过原因 | VARCHAR(500) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | package_id | Yes | |
ind_shop_id | shop_id | No | |
ind_created_time | created_time | No | |
ind_package_status | package_status | No |
1.105. syspromotion_package_item
组合促销商品表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
package_id | 组合促销ID | INT UNSIGNED | Yes | No | |
item_id | 商品ID | INT UNSIGNED | Yes | No | |
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | |
leaf_cat_id | 商品关联的平台叶子节点分类ID | INT UNSIGNED | Yes | No | |
title | 商品名称 | VARCHAR(90) | Yes | No | |
image_default_id | 商品图片 | VARCHAR(255) | No | No | |
package_price | 组合促销商品单价 | NUMERIC(20, 3) | Yes | No | |
price | 商品原价 | NUMERIC(20, 3) | Yes | No | |
promotion_tag | VARCHAR(10) | Yes | 0 | No | |
start_time | 起始时间 | INT UNSIGNED | No | 0 | No |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No |
status | 是否生效中 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | package_id, item_id | Yes | |
ind_shop_id | shop_id | No | |
ind_leaf_cat_id | leaf_cat_id | No | |
ind_item_id | item_id | No |
1.106. syspromotion_page
促销专题页
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
page_id | 促销专题页id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
page_name | 专题名称 | VARCHAR(255) | Yes | No | ||
page_tmpl | 专题页面 | VARCHAR(255) | Yes | No | ||
page_desc | 专题描述 | VARCHAR(255) | Yes | No | ||
used_platform | 适用平台\ | pc:适用于pc;wap:适用于wap; | VARCHAR(3) | Yes | pc | No |
display_time | 专题发布时间 | INT UNSIGNED | Yes | 0 | No | |
is_display | 是否开启 | TINYINT(1) | Yes | 0 | No | |
created_time | 专题创建时间 | INT UNSIGNED | Yes | 0 | No | |
updated_time | 专题修改时间 | INT UNSIGNED | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | page_id | Yes | |
ind_created_time | created_time | No | |
ind_used_platform | used_platform | No |
1.107. syspromotion_promotions
各种促销关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
promotion_id | 促销id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
rel_promotion_id | 关联的促销类型id | INT UNSIGNED | Yes | No | ||
promotion_type | 促销类型 | VARCHAR(50) | Yes | No | ||
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | ||
promotion_name | 促销名称 | VARCHAR(255) | Yes | No | ||
promotion_tag | 促销标签 | VARCHAR(255) | Yes | No | ||
promotion_desc | 促销描述 | VARCHAR(255) | No | No | ||
used_platform | 使用平台\ | 0:商家全场可用;1:只能用于pc;2:只能用于wap; | VARCHAR(1) | Yes | 0 | No |
start_time | 开始时间 | INT UNSIGNED | No | No | ||
end_time | 结束时间 | INT UNSIGNED | Yes | No | ||
created_time | 创建时间 | INT UNSIGNED | Yes | No | ||
check_status | 促销状态\ | non-reviewed:未审核;pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消;overdue:已过期; | VARCHAR(12) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | promotion_id | Yes | |
ind_rel_promotion_id | rel_promotion_id | No | |
ind_created_time | created_time | No |
1.108. syspromotion_remind
提醒表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
remind_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |||
remind_time | 提醒时间 | INT UNSIGNED | No | No | ||
start_time | 活动开始时间 | INT UNSIGNED | No | No | ||
remind_way | 提醒方式\ | email:邮件;mobile:短信; | VARCHAR(6) | Yes | No | |
remind_goal | 提醒目标 | VARCHAR(255) | Yes | No | ||
user_id | 订阅提醒用户id | INT UNSIGNED | Yes | No | ||
activity_name | 订阅提醒的活动名称 | VARCHAR(255) | No | No | ||
activity_id | 订阅提醒的活动id | INT UNSIGNED | Yes | No | ||
item_id | 订阅提醒的商品id | INT UNSIGNED | No | No | ||
item_name | 订阅提醒的商品名称 | VARCHAR(255) | No | No | ||
remind_status | 是否已提醒 | TINYINT(1) | No | 0 | No | |
add_time | 订阅时间 | INT UNSIGNED | No | No | ||
platform | 订阅平台\ | topc:pc端(topc);topwap:新wap端(topwap);app:app端(app);topm:旧wap端(topm); | VARCHAR(6) | Yes | topc | No |
url | 订阅链接 | VARCHAR(255) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | remind_id | Yes | |
ind_remind_time | remind_time | No | |
ind_user_id | user_id | No | |
ind_item_id | item_id | No | |
ind_activity_id | activity_id | No | |
ind_add_time | add_time | No |
1.109. syspromotion_xydiscount
X件Y折促销规则表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
xydiscount_id | X件Y折规则id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | ||
xydiscount_name | X件Y折规则名称 | VARCHAR(255) | Yes | No | ||
xydiscount_desc | 规则描述 | LONGTEXT | No | No | ||
used_platform | 使用平台\ | 0:商家全场可用;1:只能用于pc;2:只能用于wap; | VARCHAR(1) | Yes | 0 | No |
use_bound | 使用范围\ | 0:商家全场可用;1:指定商品可用; | VARCHAR(1) | No | 1 | No |
valid_grade | VARCHAR(255) | No | No | |||
join_limit | INT UNSIGNED | Yes | 1 | No | ||
limit_number | 满足条件件数 | INT UNSIGNED | No | No | ||
discount | 折扣 | INT UNSIGNED | No | 0 | No | |
condition_value | VARCHAR(255) | No | No | |||
created_time | 创建时间 | INT UNSIGNED | No | No | ||
start_time | 起始时间 | INT UNSIGNED | No | 0 | No | |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No | |
promotion_tag | 促销标签 | VARCHAR(15) | Yes | No | ||
xydiscount_status | 促销状态\ | non-reviewed:未审核;pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(12) | Yes | agree | No |
reason | 审核不通过原因 | VARCHAR(500) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | xydiscount_id | Yes | |
ind_shop_id | shop_id | No | |
ind_created_time | created_time | No | |
ind_xydiscount_status | xydiscount_status | No |
1.110. syspromotion_xydiscount_item
商品与促销规则关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
xydiscount_id | X件Y折ID | INT UNSIGNED | Yes | No | |
item_id | 商品ID | INT UNSIGNED | Yes | No | |
shop_id | 所属商家的店铺id | INT UNSIGNED | Yes | No | |
leaf_cat_id | 商品关联的平台叶子节点分类ID | INT UNSIGNED | Yes | No | |
title | 商品名称 | VARCHAR(90) | Yes | No | |
image_default_id | 商品图片 | VARCHAR(255) | No | No | |
price | 商品价格 | NUMERIC(20, 3) | Yes | No | |
promotion_tag | VARCHAR(10) | Yes | 0 | No | |
start_time | 起始时间 | INT UNSIGNED | No | 0 | No |
end_time | 截止时间 | INT UNSIGNED | No | 0 | No |
status | 是否生效中 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | xydiscount_id, item_id | Yes | |
ind_shop_id | shop_id | No | |
ind_leaf_cat_id | leaf_cat_id | No |
1.111. app:sysrate tables
1.112. sysrate_appeal
评论申诉表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
appeal_id | 申诉ID | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
rate_id | 评价ID | BIGINT UNSIGNED | Yes | No | |
status | WAIT:等待批准;REJECT:申诉驳回;SUCCESS:申诉成功;CLOSE:申诉关闭; | VARCHAR(7) | No | WAIT | No |
appeal_type | APPLY_DELETE:申请删除评论;APPLY_UPDATE:申请修改评论; | VARCHAR(12) | No | APPLY_UPDATE | No |
appeal_again | 再次申诉 | TINYINT(1) | No | 0 | No |
content | LONGTEXT | No | No | ||
evidence_pic | 申诉图片凭证 | LONGTEXT | No | No | |
reject_reason | LONGTEXT | No | No | ||
appeal_log | 申诉日志 | LONGTEXT | No | No | |
appeal_time | INT UNSIGNED | No | No | ||
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | appeal_id | Yes | |
ind_rate_id | rate_id | No | |
ind_status | status | No | |
ind_appeal_time | appeal_time | No |
1.113. sysrate_append
商品追加评论
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
append_rate_id | 追评ID | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
rate_id | 评价ID | BIGINT | Yes | No | |
shop_id | 店铺ID | INT UNSIGNED | No | No | |
append_content | 追评内容 | LONGTEXT | No | No | |
append_rate_pic | 追评图片 | LONGTEXT | No | No | |
is_reply | 追评是否回复 | TINYINT(1) | No | 0 | No |
append_reply_content | 追评回复 | LONGTEXT | No | No | |
reply_time | 追评回复时间 | INT UNSIGNED | No | No | |
trade_end_time | 订单结束时间 | INT UNSIGNED | No | No | |
created_time | 创建时间 | INT UNSIGNED | No | No | |
modified_time | 最后修改时间 | INT UNSIGNED | No | No | |
disabled | 是否有效 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | append_rate_id | Yes | |
rate_id | rate_id | No |
1.114. sysrate_consultation
商品咨询表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
consultation_id | 咨询自增编号 | BIGINT AUTO_INCREMENT | Yes | Yes | ||
be_reply_id | 被回复的咨询id | BIGINT | No | 0 | No | |
item_title | 被咨询的商品标题 | VARCHAR(1023) | Yes | No | ||
shop_name | 所属店铺 | VARCHAR(70) | Yes | No | ||
author | 操作人 | VARCHAR(60) | No | No | ||
consultation_type | 咨询类型\ | item:商品咨询;store_delivery:库存/配送咨询;payment: 支付方式咨询;invoice:发票保修咨询; | VARCHAR(14) | No | item | No |
contack | 联系方式 | VARCHAR(200) | No | No | ||
content | 商品咨询的内容 | VARCHAR(1023) | No | No | ||
is_reply | 商品咨询是否被回复 | TINYINT(1) | No | 0 | No | |
created_time | 创建时间 | INT UNSIGNED | No | No | ||
ip | 消费者发起咨询时的ip | VARCHAR(255) | No | No | ||
is_display | 是否显示至商祥页\ | true:显示;false:不显示; | VARCHAR(5) | No | false | No |
shop_id | 店铺ID | INT UNSIGNED | Yes | No | ||
item_id | 被咨询的商品id | BIGINT | Yes | No | ||
author_id | 操作人id | BIGINT | No | No | ||
is_anonymity | 是否匿名 | TINYINT(1) | No | 0 | No | |
modified_time | INT UNSIGNED | No | No | |||
image_default_id | 商品默认图 | VARCHAR(255) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | consultation_id | Yes | |
ind_item_id | item_id | No | |
ind_shop_id | shop_id | No | |
ind_created_time | created_time | No |
1.115. sysrate_dsr
店铺动态评分统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
shop_id | 店铺ID | BIGINT UNSIGNED | Yes | No | |
cat_id | 关联类目id | INT UNSIGNED | Yes | No | |
tally_dsr | LONGTEXT | No | 5 | No | |
attitude_dsr | LONGTEXT | No | 5 | No | |
delivery_speed_dsr | LONGTEXT | No | 5 | No | |
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | shop_id | Yes | |
ind_modified_time | modified_time | No | |
ind_cat_id | cat_id | No |
1.116. sysrate_feedback
意见反馈表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | ID | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
seller_id | 用户ID | BIGINT UNSIGNED | Yes | 0 | No |
shop_id | 店铺ID | BIGINT | Yes | 0 | No |
status | active:未处理;closed:已关闭; | VARCHAR(6) | Yes | active | No |
name | VARCHAR(32) | Yes | No | ||
VARCHAR(100) | No | 0 | No | ||
tel | VARCHAR(100) | No | No | ||
question | VARCHAR(255) | No | No | ||
memo | VARCHAR(255) | No | No | ||
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_modified_time | modified_time | No | |
ind_seller_id | seller_id | No | |
ind_shop_id | shop_id | No |
1.117. sysrate_score
店铺评分表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
tid | 订单ID | BIGINT UNSIGNED | Yes | No | |
cat_id | 关联类目id | INT UNSIGNED | Yes | No | |
user_id | 用户ID | BIGINT UNSIGNED | Yes | No | |
shop_id | 店铺ID | BIGINT UNSIGNED | Yes | No | |
tally_score | SMALLINT | No | No | ||
attitude_score | SMALLINT | No | No | ||
delivery_speed_score | SMALLINT | No | No | ||
logistics_service_score | SMALLINT | No | No | ||
created_time | INT UNSIGNED | No | No | ||
modified_time | INT UNSIGNED | No | No | ||
disabled | 是否有效 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | tid | Yes | |
ind_user_id | user_id | No | |
ind_created_time | created_time | No | |
ind_shop_id | shop_id | No |
1.118. sysrate_traderate
商品评分表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
rate_id | 评价ID | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
tid | 订单号 | VARCHAR(100) | No | No | |
oid | 子订单号 | VARCHAR(100) | No | No | |
user_id | INT UNSIGNED | Yes | No | ||
shop_id | 店铺ID | INT UNSIGNED | No | No | |
item_id | 评论的商品ID | INT UNSIGNED | Yes | No | |
item_title | VARCHAR(60) | Yes | No | ||
item_price | 商品价格 | NUMERIC(20, 3) | No | 0 | No |
item_pic | 商品图片绝对路径 | VARCHAR(1024) | No | No | |
spec_nature_info | sku描述 | LONGTEXT | No | No | |
result | good:好评;neutral:中评;bad:差评; | VARCHAR(7) | No | good | No |
content | LONGTEXT | No | No | ||
rate_pic | 晒单图片 | LONGTEXT | No | No | |
is_reply | TINYINT(1) | No | 0 | No | |
reply_content | LONGTEXT | No | No | ||
reply_time | INT UNSIGNED | No | No | ||
anony | 是否匿名 | TINYINT(1) | Yes | 0 | No |
role | seller:卖家;buyer:买家; | VARCHAR(6) | Yes | buyer | No |
is_lock | 该评价是否被锁定 | TINYINT(1) | No | 1 | No |
is_append | 是否已追评 | TINYINT(1) | No | 0 | No |
is_appeal | 是否可以申诉 | TINYINT(1) | No | 1 | No |
appeal_status | NO_APPEAL:未申诉;WAIT:等待批准;REJECT:申诉驳回;SUCCESS:申诉成功;CLOSE:申诉关闭; | VARCHAR(9) | No | NO_APPEAL | No |
appeal_again | 再次申诉 | TINYINT(1) | No | 0 | No |
appeal_time | INT UNSIGNED | No | No | ||
trade_end_time | 订单完成时间 | INT UNSIGNED | No | No | |
created_time | INT UNSIGNED | No | No | ||
modified_time | INT UNSIGNED | No | No | ||
disabled | 是否有效 | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | rate_id | Yes | |
ind_tid | tid | No | |
ind_user_id | user_id | No | |
ind_shop_id | shop_id | No | |
ind_item_id | item_id | No |
1.119. app:sysshop tables
1.120. sysshop_account
商家会员表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
seller_id | 商家账户序号ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
login_account | 登录名 | VARCHAR(100) | Yes | No | |
login_password | 登录密码 | VARCHAR(60) | Yes | No | |
disabled | TINYINT(1) | No | 0 | No | |
createtime | 创建时间 | INT UNSIGNED | No | No | |
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | seller_id | Yes | |
ind_login_account | login_account | No | |
ind_createtime | createtime | No |
1.121. sysshop_enterapply
入驻申请表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
enterapply_id | 入驻申请id 自增 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
status | 申请状态\ | active:未审核;locked:审核中;successful:审核通过;failing:审核驳回;finish:开店完成; | VARCHAR(10) | Yes | No | |
seller_id | 提交申请的账号 | INT UNSIGNED | Yes | No | ||
shop_name | 店铺名称 | VARCHAR(20) | Yes | No | ||
shop_type | 店铺类型\ | flag:品牌旗舰店;brand:品牌专卖店;cat:类目专营店;store:多品类通用型; | VARCHAR(5) | Yes | No | |
shop | 店铺相关信息 | LONGTEXT | No | No | ||
shop_info | 企业相关信息 | LONGTEXT | No | No | ||
new_brand | 商家新增品牌 | VARCHAR(20) | No | No | ||
shopuser_name | 店主姓名 | VARCHAR(20) | Yes | No | ||
company_name | 公司名称 | VARCHAR(50) | Yes | No | ||
add_time | 修改时间 | INT UNSIGNED | No | No | ||
refuse_time | 拒绝时间 | INT UNSIGNED | No | No | ||
agree_time | 同意时间 | INT UNSIGNED | No | No | ||
enterlog | 操作日志 | LONGTEXT | No | No | ||
reason | 审核不通过原因 | VARCHAR(500) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | enterapply_id | Yes | |
ind_seller_id | seller_id | No | |
ind_status | status | No |
1.122. sysshop_roles
角色表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
role_id | 角色ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 店铺ID | INT UNSIGNED | Yes | No | |
role_name | VARCHAR(100) | Yes | No | ||
workground | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | role_id | Yes |
1.123. sysshop_seller
商家账号信息
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
seller_id | INT UNSIGNED | Yes | No | |||
shop_id | 店铺id | INT UNSIGNED | No | No | ||
seller_type | 0:店主;1:店员; | VARCHAR(1) | Yes | 0 | No | |
role_id | 角色ID | INT UNSIGNED | Yes | 0 | No | |
name | VARCHAR(50) | Yes | No | |||
mobile | VARCHAR(20) | Yes | No | |||
VARCHAR(100) | Yes | No | ||||
auth_type | 认证类型\ | UNAUTH:邮箱手机均未认证;AUTH_MOBILE:手机已认证,邮箱未认证;AUTH_EMAIL:邮箱已认证,手机未认证;AUTH_ALL:手机邮箱都已认证; | VARCHAR(11) | Yes | UNAUTH | No |
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | seller_id | Yes | |
ind_mobile | mobile | No | |
ind_email | No | ||
ind_shop_id | shop_id | No |
1.124. sysshop_shop
店铺表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
shop_id | 店铺编号id 自增 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_name | 店铺名称 | VARCHAR(50) | Yes | No | ||
shop_descript | 店铺描述 | LONGTEXT | No | No | ||
shop_type | 店铺类型\ | flag:品牌旗舰店;brand:品牌专卖店;cat:类目专营店;self:运营商自营店铺;store:多品类通用型店铺; | VARCHAR(5) | Yes | No | |
seller_id | 提交申请时的用户 | INT UNSIGNED | Yes | No | ||
status | 提交状态\ | active:活动店铺;dead:过期店铺; | VARCHAR(6) | No | active | No |
open_time | 开店时间 | INT UNSIGNED | Yes | No | ||
close_time | 关店时间 | INT UNSIGNED | No | No | ||
close_reason | 店铺关闭原因 | VARCHAR(500) | No | No | ||
shop_logo | 提交logo | VARCHAR(255) | No | No | ||
shopuser_name | 店主姓名 | VARCHAR(20) | Yes | No | ||
即时通讯qq账号配置 | VARCHAR(255) | No | No | |||
wangwang | 即时通讯wangwang账号配置 | VARCHAR(255) | No | No | ||
邮箱 | VARCHAR(200) | No | No | |||
mobile | 手机号 | VARCHAR(50) | Yes | No | ||
shopuser_identity | 店主身份证号 | CHAR(18) | No | No | ||
shopuser_identity_img | 店主身份证电子版 | VARCHAR(255) | No | No | ||
shop_area | 店铺所在地区 | VARCHAR(255) | No | No | ||
shop_addr | 店铺所在地址 | LONGTEXT | Yes | No | ||
bulletin | 店铺公告 | VARCHAR(50) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | shop_id | Yes | |
ind_seller_id | seller_id | No | |
ind_shop_type | shop_type | No | |
ind_shop_name | shop_name | No |
1.125. sysshop_shop_apply_cat
店铺申请类目权限表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
apply_id | 申请编号 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 关联店铺id | INT UNSIGNED | Yes | No | |
cat_id | 关联类目id | INT UNSIGNED | Yes | No | |
apply_reason | VARCHAR(300) | No | 0 | No | |
check_status | pending:待审核;adopt:审核通过;reject:审核失败; | VARCHAR(7) | Yes | pending | No |
apply_time | 申请时间 | INT UNSIGNED | Yes | No | |
check_fail_reason | VARCHAR(300) | No | No | ||
check_time | 审核时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | apply_id | Yes | |
ind_shop_id | shop_id | No |
1.126. sysshop_shop_cat
店铺分类表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
cat_id | 分类id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | INT UNSIGNED | Yes | No | ||
parent_id | 父类ID | INT UNSIGNED | Yes | 0 | No |
cat_path | VARCHAR(100) | No | , | No | |
level | 1:一级分类;2:二级分类; | VARCHAR(1) | No | 1 | No |
is_leaf | TINYINT(1) | Yes | 0 | No | |
cat_name | VARCHAR(100) | Yes | No | ||
order_sort | INT UNSIGNED | No | 0 | No | |
modified_time | INT UNSIGNED | No | No | ||
disabled | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | cat_id | Yes | |
ind_parent_id | parent_id | No | |
ind_cat_shop_id | shop_id, cat_id | No | |
ind_cat_name | cat_name | No |
1.127. sysshop_shop_info
企业信息表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
info_id | 企业信息id 自增 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
seller_id | 提交申请的账号 | INT UNSIGNED | Yes | No | |
shop_id | 商家店铺id | INT UNSIGNED | Yes | No | |
company_name | 公司名称 | VARCHAR(50) | Yes | No | |
license_num | 营业执照注册号 | VARCHAR(50) | Yes | No | |
license_img | 营业执照副本-电子版 | VARCHAR(255) | No | No | |
representative | 法定代表人姓名 | VARCHAR(20) | Yes | No | |
corporate_identity | 法人身份证号 | CHAR(18) | No | No | |
is_mainland | 法人身份,1代表中国大陆居民,2代表非中国大陆居民 | TINYINT(1) | Yes | 1 | No |
passport_number | 法人护照号 | VARCHAR(255) | No | No | |
corporate_identity_img | 法人身份证号电子版 | VARCHAR(255) | No | No | |
license_area | 营业执照所在地 | VARCHAR(255) | No | No | |
license_addr | 营业执照详细地址 | LONGTEXT | No | No | |
establish_date | 成立日期 | BIGINT | Yes | No | |
license_indate | 营业执照有效期 | BIGINT | Yes | No | |
enroll_capital | 注册资本 | VARCHAR(20) | Yes | No | |
scope | 经营范围 | VARCHAR(200) | Yes | No | |
shop_url | 公司官网 | VARCHAR(50) | No | No | |
company_area | 公司所在地 | VARCHAR(255) | Yes | No | |
company_addr | 公司地址 | LONGTEXT | Yes | No | |
company_phone | 公司电话 | VARCHAR(20) | No | No | |
company_contacts | 公司联系人 | VARCHAR(20) | Yes | No | |
company_cmobile | 公司联系人手机号 | VARCHAR(50) | Yes | No | |
tissue_code | 组织机构代码 | VARCHAR(50) | Yes | No | |
tissue_code_img | 组织机构代码副本-电子版 | VARCHAR(255) | No | No | |
tax_code | 税务登记号 | VARCHAR(20) | Yes | No | |
tax_code_img | 税务登记号副本-电子版 | VARCHAR(255) | No | No | |
bank_user_name | 银行开户公司名 | VARCHAR(50) | Yes | No | |
bank_name | 开户银行 | VARCHAR(50) | Yes | No | |
cnaps_code | 支行联行号 | VARCHAR(50) | No | No | |
bankid | 银行账号 | VARCHAR(50) | Yes | No | |
bank_area | 开户银行所在地 | VARCHAR(50) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | info_id | Yes | |
ind_seller_id | seller_id | No | |
ind_shop_id | shop_id | No |
1.128. sysshop_shop_notice
商家通知表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
notice_id | 商家通知ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
notice_title | 商家通知标题 | VARCHAR(255) | Yes | No | |
notice_content | 商家通知内容 | LONGTEXT | Yes | No | |
notice_type | 商家通知类型 | VARCHAR(255) | Yes | No | |
shop_id | 店铺id | INT UNSIGNED | Yes | No | |
admin_id | INT UNSIGNED | No | No | ||
createtime | 商家通知创建时间 | INT UNSIGNED | No | No | |
modified_time | 商家通知最后修改时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | notice_id | Yes | |
ind_shop_id | shop_id | No |
1.129. sysshop_shop_rel_brand
店铺品牌关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
shop_id | 关联店铺id | INT UNSIGNED | Yes | No | |
brand_id | 关联品牌id | INT UNSIGNED | Yes | No | |
brand_warranty | 品牌授权书 | VARCHAR(255) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | shop_id, brand_id | Yes |
1.130. sysshop_shop_rel_dlycorp
店铺签约物流公司表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
corp_id | 物流公司ID | SMALLINT | Yes | No | |
shop_id | 店铺ID | INT UNSIGNED | Yes | No | |
corp_code | 物流公司代码 | VARCHAR(200) | Yes | No | |
corp_name | 物流公司简称 | VARCHAR(200) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_corp_id | corp_id, shop_id | No |
1.131. sysshop_shop_rel_lv1cat
店铺关联类目表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
rel_id | 店铺类目关联 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
cat_id | 关联类目id | INT UNSIGNED | Yes | No | |
shop_id | 关联店铺id | INT UNSIGNED | Yes | No | |
fee_confg | LONGTEXT | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | rel_id | Yes | |
ind_unique | cat_id, shop_id | Yes |
1.132. sysshop_shop_rel_seller
店铺子账号关联表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
shop_id | 关联店铺 | INT UNSIGNED | Yes | No | ||
seller_id | 关联商家会员id | INT UNSIGNED | Yes | No | ||
roles | 商家会员角色\ | admin:超级管理员;member:普通管理员; | VARCHAR(6) | Yes | admin | No |
authority | 商家会员权限\ | all:所有权限;other:其他权限; | VARCHAR(5) | Yes | all | No |
shop_name | 商家所属店铺名称 | VARCHAR(100) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | shop_id, seller_id | Yes |
1.133. sysshop_shop_type
店铺类型表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
shoptype_id | 自增id | SMALLINT AUTO_INCREMENT | Yes | Yes | ||
shop_type | 店铺类型id\ | flag:品牌旗舰店;brand:品牌专卖店;cat:类目专营店;self:运营商自营店铺;store:多品类通用型店铺; | VARCHAR(5) | Yes | No | |
name | 店铺类型名称 | VARCHAR(20) | Yes | No | ||
status | 状态 | TINYINT(1) | Yes | No | ||
is_exclusive | 是否排他 | TINYINT(1) | Yes | 0 | No | |
brief | 类型描述 | VARCHAR(500) | Yes | No | ||
suffix | 店铺名称后缀 | VARCHAR(20) | Yes | No | ||
max_item | 店铺默认商品上限 | INT UNSIGNED | Yes | No | ||
is_display | TINYINT(1) | No | 1 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | shoptype_id | Yes |
1.134. sysshop_store_police
库存报警表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
police_id | 库存报警ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 店铺ID | INT UNSIGNED | Yes | No | |
policevalue | INT UNSIGNED | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | police_id | Yes | |
ind_shop_id | shop_id | No |
1.135. sysshop_subdomain
店铺二级域名表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
shop_id | 店铺编号id | INT UNSIGNED | Yes | No | |
subdomain | 二级域名 | VARCHAR(50) | Yes | No | |
seller_id | 提交申请时的用户 | INT UNSIGNED | Yes | No | |
times | 修改次数 | SMALLINT | No | 0 | No |
modified_time | 最后修改店时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | shop_id | Yes | |
ind_subdomin | subdomain | No |
1.136. app:sysstat tables
1.137. sysstat_desktop_collect_item
店铺收藏排行统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
collect_item_id | 商品收藏排行id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 商家id | INT UNSIGNED | Yes | No | |
shop_name | 所属商家 | VARCHAR(90) | No | No | |
cat_id | 一级分类id | INT UNSIGNED | Yes | No | |
cat_name | 所属一级分类 | VARCHAR(255) | Yes | No | |
item_id | 商品id | INT UNSIGNED | Yes | No | |
title | 商品标题 | VARCHAR(90) | Yes | No | |
pic_path | 商品图片绝对路径 | VARCHAR(255) | No | No | |
itemurl | 商品链接 | VARCHAR(255) | No | No | |
collectnum | 收藏数量 | INT UNSIGNED | No | No | |
createtime | 统计时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | collect_item_id | Yes | |
ind_createtime | createtime | No | |
ind_shop_id | shop_id | No | |
ind_item_id | item_id | No |
1.138. sysstat_desktop_collect_shop
店铺收藏排行统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
collect_shop_id | 店铺收藏排行id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 店铺id | BIGINT | Yes | No | |
shopname | 店铺名称 | VARCHAR(90) | No | No | |
collectnum | 收藏量 | INT UNSIGNED | No | 0 | No |
shopurl | 店铺链接 | VARCHAR(255) | No | No | |
createtime | 统计时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | collect_shop_id | Yes | |
ind_createtime | createtime | No | |
ind_shop_id | shop_id | No |
1.139. sysstat_desktop_item_statics
运营商商品统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
desktop_item_stat_id | 商家商品数据统计id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 商家id | INT UNSIGNED | Yes | No | |
shop_name | 所属商家 | VARCHAR(90) | No | No | |
cat_id | 一级分类id | INT UNSIGNED | Yes | No | |
cat_name | 所属一级分类 | VARCHAR(90) | Yes | No | |
item_id | 商品id | INT UNSIGNED | Yes | No | |
title | 商品标题 | VARCHAR(90) | Yes | No | |
pic_path | 商品图片绝对路径 | VARCHAR(255) | No | No | |
itemurl | 商品链接 | VARCHAR(255) | No | No | |
amountnum | 销售数量 | INT UNSIGNED | No | No | |
amountprice | 销售总价 | NUMERIC(20, 3) | No | No | |
createtime | 统计时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | desktop_item_stat_id | Yes | |
ind_createtime | createtime | No | |
ind_item_id | item_id | No | |
ind_shop_id | shop_id | No |
1.140. sysstat_desktop_stat_shop
店铺销售排行统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
desktop_statshop_id | 店铺销售排行id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 店铺id | INT UNSIGNED | Yes | No | |
shopname | 店铺名称 | VARCHAR(90) | No | No | |
shopaccountfee | 销售额 | NUMERIC(20, 3) | No | 0 | No |
shopaccountnum | 销售量 | INT UNSIGNED | No | 0 | No |
createtime | 统计时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | desktop_statshop_id | Yes | |
ind_createtime | createtime | No | |
ind_shop_id | shop_id | No |
1.141. sysstat_desktop_stat_user
会员统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
statu_id | 会员数据统计id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
newuser | 新增会员数 | INT UNSIGNED | No | 0 | No |
accountuser | 会员数总数 | INT UNSIGNED | No | 0 | No |
shopnum | 新增店铺数 | INT UNSIGNED | No | 0 | No |
shopaccount | 店铺数 | INT UNSIGNED | No | 0 | No |
sellernum | 新增商家数 | INT UNSIGNED | No | 0 | No |
selleraccount | 商家数 | INT UNSIGNED | No | 0 | No |
createtime | 统计时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | statu_id | Yes | |
ind_createtime | createtime | No |
1.142. sysstat_desktop_stat_userorder
会员统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
statu_oid | 会员订单完成量id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
user_id | 用户 | INT UNSIGNED | Yes | No | |
user_name | 用户名 | VARCHAR(255) | No | customer | No |
userfee | 下单额 | INT UNSIGNED | No | 0 | No |
userordernum | 下单量 | INT UNSIGNED | No | 0 | No |
experience | 经验值 | INT UNSIGNED | No | 0 | No |
createtime | 统计时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | statu_oid | Yes | |
ind_createtime | createtime | No |
1.143. sysstat_desktop_trade_statics
运营商交易统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
desktop_stat_id | 运营商统计id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
new_trade | 新增订单数 | INT UNSIGNED | No | 0 | No | |
new_fee | 新增订单额 | NUMERIC(20, 3) | No | 0 | No | |
stats_trade_from | 统计来源\ | all:所有;pc:电脑端;wap:手机触屏; | VARCHAR(3) | No | all | No |
refunds_num | 已退款的订单数量 | INT UNSIGNED | No | 0 | No | |
refunds_fee | 已退款的订单额 | NUMERIC(20, 3) | No | 0 | No | |
complete_trade | 已完成的订单数量 | INT UNSIGNED | No | 0 | No | |
complete_fee | 已完成订单额 | NUMERIC(20, 3) | No | 0 | No | |
createtime | 统计时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | desktop_stat_id | Yes | |
ind_createtime | createtime | No |
1.144. sysstat_item_statics
商品统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
item_stat_id | 商家商品数据统计id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 所属商家 | INT UNSIGNED | Yes | No | |
item_id | 商品id | INT UNSIGNED | Yes | No | |
title | 商品标题 | VARCHAR(90) | Yes | No | |
pic_path | 商品图片绝对路径 | VARCHAR(255) | No | No | |
amountnum | 销售数量 | INT UNSIGNED | No | No | |
amountprice | 销售总价 | NUMERIC(20, 3) | No | No | |
createtime | 创建时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | item_stat_id | Yes | |
ind_createtime | createtime | No | |
ind_item_id | item_id | No | |
ind_shop_id | shop_id | No |
1.145. sysstat_statmember
会员统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
statm_id | 会员数据统计id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
newuser | 新增会员数 | INT UNSIGNED | No | 0 | No |
accountuser | 会员数总数 | INT UNSIGNED | No | 0 | No |
shopnum | 新增店铺数 | INT UNSIGNED | No | 0 | No |
shopaccount | 店铺数 | INT UNSIGNED | No | 0 | No |
sellernum | 新增商家数 | INT UNSIGNED | No | 0 | No |
selleraccount | 商家数 | INT UNSIGNED | No | 0 | No |
createtime | 创建时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | statm_id | Yes | |
ind_createtime | createtime | No |
1.146. sysstat_trade_statics
交易统计表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
stat_id | 商家数据统计id 自赠 | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 店铺id | INT UNSIGNED | No | No | |
new_trade | 新增订单数 | INT UNSIGNED | No | 0 | No |
new_fee | 新增订单额 | NUMERIC(20, 3) | No | 0 | No |
ready_trade | 待付款订单数 | INT UNSIGNED | No | 0 | No |
ready_fee | 待付款订单额 | NUMERIC(20, 3) | No | 0 | No |
alreadytrade | 已付款订单数 | VARCHAR(50) | No | 0 | No |
alreadyfee | 以付款订单额 | NUMERIC(20, 3) | No | 0 | No |
ready_send_trade | 待发货订单数量 | INT UNSIGNED | No | 0 | No |
ready_send_fee | 待发货订单额 | NUMERIC(20, 3) | No | 0 | No |
already_send_trade | 待收货订单数量 | INT UNSIGNED | No | 0 | No |
already_send_fee | 待收货订单额 | NUMERIC(20, 3) | No | 0 | No |
cancle_trade | 已取消的订单数量 | INT UNSIGNED | No | 0 | No |
cancle_fee | 已取消的订单额 | NUMERIC(20, 3) | No | 0 | No |
complete_trade | 已完成的订单数量 | INT UNSIGNED | No | 0 | No |
complete_fee | 已完成订单额 | NUMERIC(20, 3) | No | 0 | No |
createtime | 创建时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | stat_id | Yes | |
ind_createtime | createtime | No | |
ind_shop_id | shop_id | No |
1.147. app:system tables
1.148. system_adminlog
平台人员操作日志表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
log_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
admin_userid | 管理员id | INT UNSIGNED | Yes | No | |
admin_username | 管理员用户名 | VARCHAR(50) | Yes | No | |
created_time | 操作时间 | INT UNSIGNED | Yes | No | |
memo | 操作内容 | LONGTEXT | No | No | |
status | 操作结果 | TINYINT(1) | No | 0 | No |
router | 操作路由 | LONGTEXT | No | No | |
ip | IP | VARCHAR(20) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | log_id | Yes | |
ind_createdtime | created_time | No | |
ind_adminusername | admin_username | No |
1.149. system_apilog
API调用日志
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
apilog_id | VARCHAR(255) | Yes | No | ||
msg_id | VARCHAR(50) | No | No | ||
runtime | VARCHAR(255) | No | No | ||
calltime | INT UNSIGNED | No | No | ||
status | running:运行中;success:成功;fail:失败; | VARCHAR(7) | Yes | running | No |
worker | VARCHAR(255) | No | No | ||
params | 任务参数 | LONGTEXT | No | No | |
result | 返回数据 | LONGTEXT | No | No | |
api_type | response:响应;request:请求; | VARCHAR(8) | Yes | response | No |
last_modify | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | apilog_id | Yes | |
msg_id | msg_id | No |
1.150. system_file
sotrager文件存储表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
file_path | VARCHAR(255) | No | No | ||
storage | VARCHAR(50) | Yes | filesystem | No | |
file_name | VARCHAR(200) | No | No | ||
url | VARCHAR(255) | Yes | No | ||
ident | 唯一标识 | VARCHAR(200) | No | No | |
size | 文件大小 | INT UNSIGNED | No | No | |
last_modified | INT UNSIGNED | Yes | 0 | No | |
disabled | disabled | TINYINT(1) | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_url | url | Yes |
1.151. system_matrixset
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
matrixset_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
node_id | VARCHAR(20) | No | No | ||
status | active:active;dead:dead; | VARCHAR(6) | No | No | |
api_url | VARCHAR(100) | No | No | ||
iframe_url | VARCHAR(100) | No | No | ||
token | VARCHAR(100) | No | No | ||
node_type | VARCHAR(20) | No | No | ||
shopname | VARCHAR(20) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | matrixset_id | Yes |
1.152. system_messenger_systmpl
邮件短信模板
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
tmpl_name | 模版名称 | VARCHAR(100) | Yes | No | |
content | 模板内容 | LONGTEXT | No | 0 | No |
modified_time | INT UNSIGNED | No | No | ||
active | 是否激活 | TINYINT(1) | No | 1 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | tmpl_name | Yes |
1.153. system_prism_initstep
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
step_id | 执行任务的步骤 | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
state | 当前任务是否已经执行过\ | ready:准备执行中;complete:执行完毕; | VARCHAR(8) | No | ready | No |
handlar | 执行任务的类和方法 | VARCHAR(50) | No | No | ||
params | 请求参数 | LONGTEXT | No | No | ||
result | 返回参数 | LONGTEXT | No | No | ||
create_time | 进入队列的时间 | INT UNSIGNED | No | 0 | No | |
start_time | 任务开始执行时间 | INT UNSIGNED | No | 0 | No | |
complete_time | 任务执行结束时间 | INT UNSIGNED | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | step_id | Yes |
1.154. system_queue_failed
队列执行失败表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | ID | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
queue_name | 队列标识 | VARCHAR(100) | Yes | No | |
data | 队列数据 | LONGTEXT | Yes | No | |
create_time | 队列执行失败时间 | INT UNSIGNED | No | 0 | No |
reason | 失败原因 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_get | queue_name | No |
1.155. system_queue_mysql
队列-mysql实现表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | ID | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
queue_name | 队列标识 | VARCHAR(100) | Yes | No | |
worker | 执行任务类 | VARCHAR(100) | Yes | No | |
params | 任务参数 | LONGTEXT | Yes | No | |
create_time | 进入队列的时间 | INT UNSIGNED | No | 0 | No |
last_cosume_time | 任务开始执行时间 | INT UNSIGNED | No | 0 | No |
owner_thread_id | mysql进程ID | INT | No | -1 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_get | queue_name, owner_thread_id | No |
1.156. system_seller_log
店铺人员操作日志表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
log_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
seller_userid | 店员id | INT UNSIGNED | Yes | No | |
seller_username | 店员用户名 | VARCHAR(50) | Yes | No | |
shop_id | 店铺id | INT UNSIGNED | Yes | No | |
created_time | 操作时间 | INT UNSIGNED | Yes | No | |
memo | 操作内容 | LONGTEXT | No | No | |
router | 操作路由 | LONGTEXT | No | No | |
ip | IP | VARCHAR(15) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | log_id | Yes | |
ind_createdtime | created_time | No | |
ind_sellerusername | seller_username | No | |
ind_shop_id | shop_id | No |
1.157. app:systrade tables
1.158. systrade_activity_detail
订单使用的活动信息表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
tid | 主订单id | BIGINT UNSIGNED | Yes | No | |
oid | 子订单id | BIGINT UNSIGNED | Yes | No | |
user_id | 会员id | INT UNSIGNED | Yes | No | |
activity_id | 活动规则id | INT UNSIGNED | Yes | No | |
item_id | 商品的ID | INT UNSIGNED | No | No | |
sku_id | sku的ID | INT UNSIGNED | No | No | |
activity_tag | 活动标签 | VARCHAR(30) | No | No | |
activity_name | 活动名称 | VARCHAR(255) | No | No | |
activity_desc | 活动描述 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
ind_tid | tid | No | |
ind_user_id | user_id | No |
1.159. systrade_cart
购物车
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
cart_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
user_ident | 会员ident,会员信息和session生成的唯一值 | VARCHAR(50) | Yes | No | |
user_id | 会员id | INT | Yes | -1 | No |
shop_id | 店铺ID | INT UNSIGNED | Yes | No | |
obj_type | 购物车对象类型 | VARCHAR(20) | Yes | No | |
obj_ident | VARCHAR(255) | Yes | No | ||
item_id | 商品id | INT UNSIGNED | No | No | |
sku_id | sku的id | INT UNSIGNED | No | No | |
title | 商品标题 | VARCHAR(90) | Yes | No | |
image_default_id | 商品默认图 | VARCHAR(255) | No | No | |
quantity | 数量 | DOUBLE PRECISION UNSIGNED | Yes | No | |
is_checked | 是否购物车选中 | TINYINT(1) | Yes | 0 | No |
package_id | 组合促销ID | INT UNSIGNED | No | No | |
params | LONGTEXT | No | No | ||
selected_promotion | 购物车选中的促销ID | VARCHAR(30) | Yes | No | |
created_time | 加入购物车时间 | INT UNSIGNED | No | No | |
modified_time | 最后修改时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | cart_id | Yes | |
ind_sku_id | sku_id | No | |
ind_user_ident | user_ident | No | |
ind_shop_id | shop_id | No | |
ind_user_id | user_id | No |
1.160. systrade_cart_coupon
购物车使用优惠券表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
user_id | 会员id | INT | Yes | No | |
shop_id | 店铺ID | INT UNSIGNED | Yes | No | |
coupon_id | 优惠券id | INT UNSIGNED | Yes | No | |
coupon_code | 优惠券号码 | VARCHAR(15) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_shopusers_id | shop_id, user_id | Yes |
1.161. systrade_cart_item
购物车sku数量信息表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
cart_id | 购物车ID | INT UNSIGNED | Yes | No | |
sku_id | SKU的ID | INT UNSIGNED | Yes | No | |
quantity | SKU的数量 | INT UNSIGNED | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | cart_id, sku_id | Yes |
1.162. systrade_delivery_code
自提订单提货码记录表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
id | ID | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
tid | 订单编号 | BIGINT UNSIGNED | Yes | No | ||
shop_id | 所属商家 | INT UNSIGNED | Yes | No | ||
num | 发送次数 | INT UNSIGNED | Yes | 0 | No | |
vcode | 提货码 | VARCHAR(60) | Yes | No | ||
status | 提货码验证状态\ | WITH_CHECK:等待验证;WITH_FINDISH:验证完成; | VARCHAR(12) | Yes | WITH_CHECK | No |
modified_time | 修改时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_tid | tid | No | |
ind_shop_id | shop_id | No |
1.163. systrade_log
订单日志表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
log_id | 订单日志ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
rel_id | 单据对象ID,如订单号,退款单号等 | BIGINT UNSIGNED | Yes | 0 | No | |
op_id | 操作员ID | INT UNSIGNED | No | No | ||
op_name | 操作人名称 | VARCHAR(100) | No | No | ||
op_role | 操作角色\ | buyer:购买者;seller:卖家;shopadmin:平台操作员;system:系统; | VARCHAR(9) | Yes | system | No |
behavior | 日志记录操作的行为\ | create:创建;update:修改;payed:支付;delivery:发货;confirm:收货;cancel:取消;refund:退款;reship:退货;exchange:换货;mark:修改备注;finish:完成; | VARCHAR(8) | Yes | update | No |
log_text | 操作内容 | LONGTEXT | No | No | ||
log_time | 记录时间 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | log_id | Yes | |
ind_rel_id | rel_id | No | |
ind_log_time | log_time | No |
1.164. systrade_order
订单子表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
oid | 子订单编号 | BIGINT UNSIGNED | Yes | No | ||
tid | 订单编号 | BIGINT UNSIGNED | Yes | No | ||
cat_id | 类目id | INT UNSIGNED | Yes | No | ||
shop_id | 所属商家 | INT UNSIGNED | Yes | No | ||
user_id | 买家id | INT UNSIGNED | Yes | No | ||
item_id | 商品id | INT UNSIGNED | Yes | No | ||
sku_id | 货品id | INT UNSIGNED | Yes | No | ||
bn | 明细商品的编码 | VARCHAR(45) | No | No | ||
title | 商品标题 | VARCHAR(90) | Yes | No | ||
spec_nature_info | sku描述 | LONGTEXT | No | No | ||
price | 商品价格 | NUMERIC(20, 3) | No | 0 | No | |
num | 购买数量 | INT UNSIGNED | No | No | ||
sendnum | 明细商品发货数量 | DOUBLE PRECISION | Yes | 0 | No | |
sku_properties_name | SKU的值 | VARCHAR(500) | No | No | ||
refund_id | 最近退款ID | VARCHAR(20) | No | No | ||
is_oversold | 是否超卖 | TINYINT(1) | No | 0 | No | |
pay_time | 付款时间 | INT UNSIGNED | No | No | ||
end_time | 结束时间 | INT UNSIGNED | No | No | ||
consign_time | 发货时间 | INT UNSIGNED | No | No | ||
shipping_type | 运送方式 | VARCHAR(20) | No | No | ||
bind_oid | 捆绑的子订单号 | VARCHAR(20) | No | No | ||
logistics_company | 子订单发货的快递公司 | VARCHAR(30) | No | No | ||
invoice_no | 子订单所在包裹的运单号 | VARCHAR(20) | No | No | ||
divide_order_fee | 分摊之后的实付金额 | NUMERIC(20, 3) | No | 0 | No | |
part_mjz_discount | 优惠分摊 | NUMERIC(20, 3) | No | 0 | No | |
total_fee | 应付金额 | NUMERIC(20, 3) | No | 0 | No | |
payment | 实付金额 | NUMERIC(20, 3) | No | 0 | No | |
points_fee | 积分抵扣的金额 | NUMERIC(20, 3) | No | 0 | No | |
consume_point_fee | 买家使用积分 | INT UNSIGNED | No | 0 | No | |
total_weight | 商品重量 | NUMERIC(20, 3) | Yes | 0 | No | |
discount_fee | 子订单级订单优惠金额 | NUMERIC(20, 3) | No | 0 | No | |
adjust_fee | 手工调整金额 | NUMERIC(20, 3) | No | 0 | No | |
modified_time | 最后更新时间 | INT UNSIGNED | No | No | ||
status | 子订单状态\ | WAIT_BUYER_PAY:等待买家付款;WAIT_SELLER_SEND_GOODS:等待卖家发货,即:买家已付款;WAIT_BUYER_CONFIRM_GOODS:等待买家确认收货,即:卖家已发货;TRADE_BUYER_SIGNED:买家已签收,货到付款专用;TRADE_FINISHED:交易成功;TRADE_CLOSED_AFTER_PAY:付款以后,用户退款成功,交易自动关闭;TRADE_CLOSED_BEFORE_PAY:卖家或买家主动关闭交易; | VARCHAR(24) | Yes | WAIT_BUYER_PAY | No |
aftersales_status | 售后状态\ | WAIT_SELLER_AGREE:买家已经申请退款,等待卖家同意;WAIT_BUYER_RETURN_GOODS:卖家已经同意退款,等待买家退货;WAIT_SELLER_CONFIRM_GOODS:买家已经退货,等待卖家确认收货;SUCCESS:退款成功;CLOSED:退款关闭;REFUNDING:退款中;SELLER_REFUSE_BUYER:卖家拒绝退款;SELLER_SEND_GOODS:卖家已发货; | VARCHAR(25) | No | No | |
complaints_status | 订单投诉状态\ | NOT_COMPLAINTS:买家未进行投诉;WAIT_SYS_AGREE:买家投诉,等待平台处理;FINISHED:处理完成;BUYER_CLOSED:买家撤销投诉;CLOSED:平台关闭投诉,不需要处理直接关闭; | VARCHAR(14) | No | NOT_COMPLAINTS | No |
refund_fee | 退款金额 | NUMERIC(20, 3) | No | 0 | No | |
buyer_rate | 买家是否已评价 | TINYINT(1) | No | 0 | No | |
anony | 是否匿名 | TINYINT(1) | No | 0 | No | |
seller_rate | 卖家是否已评价 | TINYINT(1) | No | 0 | No | |
cat_service_rate | NUMERIC(20, 3) | No | 0 | No | ||
order_from | 订单来源 | VARCHAR(45) | No | No | ||
pic_path | 商品图片绝对路径 | VARCHAR(255) | No | No | ||
timeout_action_time | 订单超时到期时间 | INT UNSIGNED | No | No | ||
outer_iid | 商家外部编码 | VARCHAR(50) | No | No | ||
outer_sku_id | 商家外部sku码 | VARCHAR(50) | No | No | ||
sub_stock | 是否支持下单减库存 | TINYINT(1) | Yes | 1 | No | |
dlytmpl_id | 配送模板id | INT UNSIGNED | Yes | No | ||
gift_data | 赠品数据 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | oid | Yes | |
ind_tid | tid | No | |
ind_shop_id | shop_id | No | |
ind_user_id | user_id | No |
1.165. systrade_order_complaints
订单投诉表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
complaints_id | 订单投诉ID | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
shop_id | 被投诉店铺ID | BIGINT | Yes | 0 | No |
user_id | 发起投诉用户ID | BIGINT UNSIGNED | Yes | 0 | No |
tid | 投诉订单号 | BIGINT | Yes | No | |
oid | 投诉子订单号 | BIGINT | Yes | No | |
status | WAIT_SYS_AGREE:等待处理;FINISHED:已完成;BUYER_CLOSED:买家撤销投诉;CLOSED:平台关闭投诉; | VARCHAR(14) | Yes | WAIT_SYS_AGREE | No |
tel | VARCHAR(100) | Yes | 0 | No | |
image_url | VARCHAR(1500) | No | No | ||
complaints_type | VARCHAR(255) | No | No | ||
content | LONGTEXT | No | No | ||
memo | VARCHAR(255) | No | No | ||
buyer_close_reasons | VARCHAR(255) | No | No | ||
created_time | INT UNSIGNED | No | No | ||
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | complaints_id | Yes | |
ind_tid | tid | No | |
ind_status | status | No |
1.166. systrade_promotion_detail
订单使用的促销信息表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
tid | 主订单id | BIGINT UNSIGNED | Yes | No | |
oid | 子订单id | BIGINT UNSIGNED | Yes | No | |
user_id | 会员id | INT UNSIGNED | Yes | No | |
promotion_id | 促销规则id | INT UNSIGNED | Yes | No | |
item_id | 商品的ID | INT UNSIGNED | No | No | |
sku_id | sku的ID | INT UNSIGNED | No | No | |
promotion_type | 优惠规则类型 | VARCHAR(30) | Yes | No | |
promotion_tag | 促销标签 | VARCHAR(30) | No | No | |
promotion_name | 促销名称 | VARCHAR(255) | No | No | |
promotion_desc | 促销描述 | LONGTEXT | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
ind_tid | tid | No | |
ind_oid | oid | No | |
ind_promotion_id | promotion_id | No |
1.167. systrade_trade
订单主表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
tid | BIGINT UNSIGNED | Yes | No | |||
shop_id | 订单所属的店铺id | INT UNSIGNED | Yes | No | ||
user_id | 会员id | INT UNSIGNED | Yes | No | ||
dlytmpl_id | 配送模板id | INT UNSIGNED | No | No | ||
dlytmpl_ids | 配送模板ids(1,2,3) | VARCHAR(255) | Yes | No | ||
ziti_addr | 自提地址 | VARCHAR(255) | No | No | ||
status | 订单状态\ | WAIT_BUYER_PAY:已下单等待付款;WAIT_SELLER_SEND_GOODS:已付款等待发货;WAIT_BUYER_CONFIRM_GOODS:已发货等待确认收货;TRADE_FINISHED:已完成;TRADE_CLOSED:已关闭(退款关闭订单);TRADE_CLOSED_BY_SYSTEM:已关闭(卖家或买家主动关闭); | VARCHAR(24) | Yes | No | |
cancel_status | NO_APPLY_CANCEL:未申请;WAIT_PROCESS:等待审核;REFUND_PROCESS:退款处理;SUCCESS:取消成功;FAILS:取消失败; | VARCHAR(15) | Yes | NO_APPLY_CANCEL | No | |
cancel_reason | LONGTEXT | No | No | |||
pay_type | 支付类型\ | online:线上付款;offline:货到付款; | VARCHAR(7) | Yes | online | No |
payment | 实付金额,订单最终总额 | NUMERIC(20, 3) | No | 0 | No | |
points_fee | 积分抵扣金额 | NUMERIC(20, 3) | No | 0 | No | |
total_fee | 各子订单中商品price * num的和,不包括任何优惠信息 | NUMERIC(20, 3) | No | 0 | No | |
post_fee | 邮费 | NUMERIC(20, 3) | No | No | ||
payed_fee | 已支付金额(包含红包支付的金额) | NUMERIC(20, 3) | No | 0 | No | |
hongbao_fee | 红包支付金额 | NUMERIC(20, 3) | No | 0 | No | |
user_hongbao_id | 使用红包支付的ID集合 | VARCHAR(255) | No | No | ||
seller_rate | 卖家是否评价 | TINYINT(1) | No | 0 | No | |
receiver_name | 收货人姓名 | VARCHAR(50) | No | No | ||
created_time | 订单创建时间 | INT UNSIGNED | No | No | ||
pay_time | 付款时间 | INT UNSIGNED | No | No | ||
consign_time | 卖家发货时间 | INT UNSIGNED | No | No | ||
end_time | 结束时间 | INT UNSIGNED | No | No | ||
modified_time | 修改时间 | INT UNSIGNED | No | No | ||
timeout_action_time | 超时到期时间 | INT UNSIGNED | No | No | ||
send_time | 订单将在此时间前发出,主要用于预售订单 | INT UNSIGNED | No | No | ||
receiver_state | 收货人所在省份 | VARCHAR(20) | No | No | ||
receiver_city | 收货人所在城市 | VARCHAR(20) | No | No | ||
receiver_district | 收货人所在地区 | VARCHAR(20) | No | No | ||
receiver_address | 收货人详细地址 | VARCHAR(200) | No | No | ||
receiver_zip | 收货人邮编 | VARCHAR(20) | No | No | ||
receiver_mobile | 收货人手机号 | VARCHAR(20) | No | No | ||
receiver_phone | 收货人电话 | VARCHAR(20) | No | No | ||
title | 交易标题 | VARCHAR(90) | No | No | ||
discount_fee | 促销优惠金额 | NUMERIC(20, 3) | No | 0 | No | |
consume_point_fee | 买家使用积分 | INT UNSIGNED | No | 0 | No | |
buyer_message | 买家留言 | VARCHAR(255) | No | No | ||
need_invoice | 是否需要开票 | TINYINT(1) | No | 0 | No | |
invoice_name | 发票抬头 | VARCHAR(100) | No | No | ||
invoice_type | 发票类型 | VARCHAR(20) | No | No | ||
invoice_main | 发票内容 | VARCHAR(100) | No | No | ||
invoice_vat_main | 增值税发票内容 | LONGTEXT | No | No | ||
adjust_fee | 卖家手工调整金额,子订单调整金额之和 | NUMERIC(20, 3) | No | 0 | No | |
trade_from | 订单来源\ | pc:标准平台;wap:手机触屏;weixin:微信商城; | VARCHAR(6) | No | pc | No |
itemnum | 子订单商品购买数量总数 | INT UNSIGNED | No | 0 | No | |
shop_flag | 卖家备注旗帜 | VARCHAR(20) | No | No | ||
shop_memo | 卖家备注 | LONGTEXT | No | No | ||
buyer_area | 买家下单的地区 | VARCHAR(30) | No | No | ||
area_id | 区域id,代表订单下单的区位码 | INT UNSIGNED | No | No | ||
step_trade_status | 分阶段付款的订单状态\ | 0:定金和尾款都付;1:定金已付尾款未付;2:定金未付尾款未付; | VARCHAR(1) | No | No | |
total_weight | 商品重量 | NUMERIC(20, 3) | Yes | 0 | No | |
step_paid_fee | 分阶段付款的已付金额 | NUMERIC(20, 3) | No | No | ||
shipping_type | 创建交易时的配送类型\ | express:快递;ziti:自提;post:平邮;ems:EMS;virtual:虚拟发货; | VARCHAR(7) | No | No | |
obtain_point_fee | 买家获得积分,返点的积分 | BIGINT | No | No | ||
trade_memo | 交易备注 | LONGTEXT | No | No | ||
buyer_rate | 买家是否已评价 | TINYINT(1) | No | 0 | No | |
is_part_consign | 是否是多次发货的订单 | TINYINT(1) | No | 0 | No | |
real_point_fee | 买家实际使用积分 | INT UNSIGNED | No | No | ||
ip | IP地址 | VARCHAR(15) | No | No | ||
anony | 下单选择的是否匿名,子订单将匿名修改该字段不修改,只表示下单的选择 | TINYINT(1) | No | 0 | No | |
is_clearing | 是否生成结算单 | TINYINT(1) | No | 0 | No | |
disabled | 是否有效 | TINYINT(1) | Yes | 0 | No | |
ziti_memo | 自提备注 | VARCHAR(300) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | tid | Yes | |
ind_status | status | No | |
ind_user_id | user_id | No | |
ind_shop_id | shop_id | No | |
ind_created_time | created_time | No |
1.168. systrade_trade_cancel
取消订单表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
cancel_id | 自增ID | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
user_id | 会员id | INT UNSIGNED | No | No | ||
shop_id | 店铺id | INT UNSIGNED | No | No | ||
tid | BIGINT | Yes | No | |||
pay_type | 支付类型\ | online:线上付款;offline:货到付款; | VARCHAR(7) | Yes | online | No |
payed_fee | 取消订单已支付金额 | NUMERIC(20, 3) | No | 0 | No | |
reason | VARCHAR(255) | No | No | |||
shop_reject_reason | VARCHAR(255) | No | No | |||
cancel_from | buyer:用户取消订单;shop:商家取消订单;shopadmin:平台取消订单; | VARCHAR(9) | No | buyer | No | |
process | 0:提交申请;1:取消处理;2:退款处理;3:完成; | VARCHAR(1) | Yes | 0 | No | |
refunds_status | WAIT_CHECK:等待审核;WAIT_REFUND:等待退款;SHOP_CHECK_FAILS:商家审核不通过;FAILS:退款失败;SUCCESS:退款成功; | VARCHAR(16) | Yes | WAIT_CHECK | No | |
created_time | INT UNSIGNED | No | No | |||
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | cancel_id | Yes | |
ind_tid | tid | No | |
ind_shop_id | shop_id | No | |
ind_created_time | created_time | No | |
ind_status | process | No |
1.169. app:sysuser tables
1.170. sysuser_account
商城会员用户表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
user_id | 用户ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
login_account | 用户名 | VARCHAR(100) | No | No | |
邮箱 | VARCHAR(100) | No | No | ||
mobile | 手机号 | VARCHAR(32) | No | No | |
login_password | 登录密码 | VARCHAR(60) | Yes | No | |
login_type | 登录类型,信任登录或者普通登录 | VARCHAR(60) | Yes | common | No |
disabled | TINYINT(1) | No | 0 | No | |
createtime | 创建时间 | INT UNSIGNED | No | No | |
modified_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | user_id | Yes | |
ind_login_account | login_account | No | |
ind_email | No | ||
ind_mobile | mobile | No |
1.171. sysuser_shop_fav
收藏店铺表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
snotify_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 商店ID | INT UNSIGNED | Yes | No | |
user_id | INT UNSIGNED | No | No | ||
shop_name | 店铺名称 | VARCHAR(50) | Yes | No | |
shop_logo | 提交logo | VARCHAR(500) | No | No | |
create_time | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | snotify_id | Yes | |
ind_shop_id | shop_id | No | |
ind_user_id | user_id | No |
1.172. sysuser_tag
标签
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
tag_id | 标签id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
tag_name | 标签名称 | VARCHAR(150) | Yes | No | |
tag_color | 标签颜色 | VARCHAR(7) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | tag_id | Yes | |
ind_unique | tag_name | Yes |
1.173. sysuser_trustinfo
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
trust_id | 信任id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
user_id | 会员id | INT UNSIGNED | No | No | |
user_flag | 对应信任登陆方的唯一标识 | VARCHAR(255) | Yes | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | trust_id | Yes | |
ind_bind_uniq | user_id, user_flag | Yes |
1.174. sysuser_user
商店会员表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
user_id | INT UNSIGNED | Yes | No | ||
grade_id | INT UNSIGNED | Yes | 1 | No | |
name | VARCHAR(50) | No | No | ||
username | VARCHAR(50) | No | No | ||
point | INT UNSIGNED | Yes | 0 | No | |
refer_id | VARCHAR(50) | No | No | ||
refer_url | VARCHAR(200) | No | No | ||
birthday | 会员生日 | INT | No | No | |
sex | 0:女;1:男;2:保密; | VARCHAR(1) | Yes | 2 | No |
wedlock | 婚姻状况 | TINYINT(1) | Yes | 0 | No |
education | 教育程度 | VARCHAR(30) | No | No | |
vocation | 职业 | VARCHAR(50) | No | No | |
reg_ip | 注册时IP地址 | VARCHAR(16) | No | No | |
regtime | 注册时间 | INT UNSIGNED | No | No | |
cur | 货币(偏爱货币) | VARCHAR(20) | No | No | |
lang | 偏好语言 | VARCHAR(20) | No | No | |
disabled | TINYINT(1) | No | 0 | No | |
experience | INT UNSIGNED | No | 0 | No | |
source | pc:标准平台;wap:手机触屏;weixin:微信商城;api:API注册; | VARCHAR(6) | No | pc | No |
area | VARCHAR(55) | No | No | ||
addr | VARCHAR(255) | No | No | ||
email_verify | TINYINT(1) | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | user_id | Yes | |
ind_regtime | regtime | No | |
ind_disabled | disabled | No |
1.175. sysuser_user_addrs
会员地址表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
addr_id | 会员地址ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
user_id | 会员ID | INT UNSIGNED | Yes | 0 | No |
name | 会员名称 | VARCHAR(50) | No | No | |
area | 地区 | VARCHAR(255) | No | No | |
addr | 地址 | VARCHAR(100) | No | No | |
zip | 邮编 | VARCHAR(20) | No | No | |
tel | 电话 | VARCHAR(50) | No | No | |
mobile | 手机 | VARCHAR(50) | No | No | |
def_addr | 默认地址 | TINYINT(1) | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | addr_id | Yes | |
ind_user_id | user_id | No |
1.176. sysuser_user_checkin
签到记录表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
user_id | 会员ID | INT UNSIGNED | Yes | 0 | No |
checkin_date | 签到日期 | DATE | Yes | 1970-01-01 | No |
checkin_time | 签到时间 | BIGINT | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | user_id, checkin_date | Yes |
1.177. sysuser_user_coupon
用户优惠券表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
coupon_code | 优惠券号码 | VARCHAR(32) | Yes | No | ||
user_id | 会员ID | INT UNSIGNED | Yes | No | ||
shop_id | 店铺ID | INT UNSIGNED | Yes | 0 | No | |
coupon_id | 会员优惠券ID | INT UNSIGNED | Yes | 0 | No | |
obtain_desc | 领取方式 | VARCHAR(255) | Yes | No | ||
obtain_time | 优惠券获得时间 | INT UNSIGNED | No | No | ||
tid | 使用该优惠券的订单号 | BIGINT UNSIGNED | No | No | ||
is_valid | 会员优惠券是否当前可用\ | 0:已使用;1:有效;2:过期; | VARCHAR(1) | Yes | 1 | No |
used_platform | 使用平台\ | 0:商家全场可用;1:只能用于pc;2:只能用于wap; | VARCHAR(1) | Yes | 0 | No |
price | 优惠金额,冗余字段用于查询 | NUMERIC(20, 3) | No | 0 | No | |
start_time | 优惠券生效时间,冗余字段用于查询 | INT UNSIGNED | No | No | ||
end_time | 优惠券失效时间,冗余字段用于查询 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | coupon_code, user_id, shop_id | Yes | |
ind_tid | tid | No | |
ind_shop_id | shop_id | No |
1.178. sysuser_user_deposit
预存款表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
user_id | 会员用户id | INT UNSIGNED | Yes | No | |
deposit | 预存款余额 | NUMERIC(20, 3) | No | 0 | No |
password | 支付密码 | VARCHAR(60) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | user_id | Yes |
1.179. sysuser_user_deposit_cash
预存款提现信息表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
cash_id | 提现单号 | BIGINT | Yes | No | ||
user_id | 会员用户id | INT UNSIGNED | No | No | ||
create_time | 提现申请时间 | INT UNSIGNED | No | No | ||
amount | 金额 | NUMERIC(20, 3) | No | No | ||
bank_card_id | 银行卡号 | VARCHAR(20) | No | No | ||
bank_name | 开户行名称 | VARCHAR(50) | No | No | ||
bank_card_owner | 持卡人姓名 | VARCHAR(20) | No | No | ||
status | 提现状态\ | TO_VERIFY:已申请;VERIFIED:已审核;DENIED:已驳回;COMPELETE:已完成; | VARCHAR(9) | No | No | |
serial_id | 交易流水号 | VARCHAR(50) | No | No | ||
executor | 转账执行人 | VARCHAR(20) | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | cash_id | Yes |
1.180. sysuser_user_deposit_log
会员预存款记录日志表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
log_id | 日志id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
type | 日志类型(消费还是充值)\ | add:充值;expense:消费; | VARCHAR(7) | No | No | |
user_id | INT UNSIGNED | No | No | |||
operator | VARCHAR(255) | No | No | |||
fee | NUMERIC(20, 3) | No | No | |||
message | VARCHAR(255) | No | No | |||
logtime | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | log_id | Yes | |
ind_user_id | user_id | No |
1.181. sysuser_user_experience
会员经验值详细记录表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
experience_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |||
user_id | INT UNSIGNED | No | No | |||
modified_time | 记录时间 | INT UNSIGNED | No | No | ||
behavior_type | 行为类型\ | obtain:获得;consume:消费; | VARCHAR(7) | No | obtain | No |
behavior | 行为描述 | VARCHAR(100) | No | No | ||
experience | 成长值 | BIGINT | No | No | ||
remark | 备注(记录订单号) | VARCHAR(500) | No | No | ||
expiration_time | 经验值过期时间 | INT UNSIGNED | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | experience_id | Yes | |
ind_user_id | user_id | No | |
ind_modified_time | modified_time | No |
1.182. sysuser_user_fav
收藏/缺货登记
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
gnotify_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
item_id | 商品ID | INT UNSIGNED | Yes | No | |
shop_id | 店铺id | BIGINT | Yes | No | |
user_id | INT UNSIGNED | No | No | ||
sku_id | 货品ID | INT UNSIGNED | No | No | |
cat_id | 商品类目ID | INT UNSIGNED | Yes | No | |
goods_name | VARCHAR(200) | No | No | ||
goods_price | NUMERIC(20, 3) | No | 0 | No | |
image_default_id | VARCHAR(255) | No | No | ||
邮箱 | VARCHAR(100) | No | No | ||
cellphone | VARCHAR(20) | No | No | ||
send_time | INT UNSIGNED | No | No | ||
create_time | INT UNSIGNED | No | No | ||
disabled | TINYINT(1) | No | 0 | No | |
remark | 备注 | LONGTEXT | No | 0 | No |
object_type | 收藏的类型,goods | VARCHAR(100) | No | goods | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | gnotify_id | Yes | |
ind_item_id | item_id | No | |
ind_user_id | user_id | No | |
ind_cat_id | cat_id | No | |
ind_create_time | create_time | No |
1.183. sysuser_user_grade
会员等级表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
grade_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
grade_name | VARCHAR(100) | Yes | No | ||
grade_logo | 会员等级LOGO | VARCHAR(255) | No | No | |
experience | INT UNSIGNED | Yes | 0 | No | |
default_grade | 是否默认等级 | TINYINT(1) | Yes | 0 | No |
validity | 等级有效期 | INT UNSIGNED | Yes | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | grade_id | Yes |
1.184. sysuser_user_hongbao
用户红包表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
id | id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
name | 红包名称 | VARCHAR(50) | Yes | No | ||
hongbao_id | 红包ID | INT UNSIGNED | Yes | No | ||
user_id | 会员ID | INT UNSIGNED | Yes | No | ||
obtain_time | 红包获得时间 | INT UNSIGNED | No | No | ||
tid | 使用该红包的订单号 | VARCHAR(255) | No | No | ||
is_valid | 会员红包是否当前可用\ | used:已使用;active:有效;expired:过期; | VARCHAR(7) | Yes | active | No |
hongbao_obtain_type | 获取红包方式\ | aftersales:售后退还红包;cancelTrade:取消订单退还红包;userGet:用户主动领取红包;adminPut:平台主动发放;shopPut:商家主动发放; | VARCHAR(11) | Yes | userGet | No |
obtain_desc | VARCHAR(255) | No | 用户主动领取 | No | ||
refund_hongbao_tid | 退还红包的订单 | VARCHAR(255) | No | No | ||
used_platform | 使用平台\ | all:商家全场可用;pc:只能用于pc;wap:只能用于wap; | VARCHAR(3) | Yes | all | No |
hongbao_type | 红包类型 | VARCHAR(255) | Yes | No | ||
money | 红包金额 | NUMERIC(20, 3) | No | 0 | No | |
start_time | 红包生效时间,冗余字段用于查询 | INT UNSIGNED | No | No | ||
end_time | 红包失效时间,冗余字段用于查询 | INT UNSIGNED | No | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | id | Yes | |
ind_tid | tid | No |
1.185. sysuser_user_item_notify
缺货表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
gnotify_id | 缺货ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
shop_id | 店铺id | INT UNSIGNED | Yes | No | ||
item_id | 商品id | INT UNSIGNED | Yes | No | ||
sku_id | 货品id | INT UNSIGNED | Yes | No | ||
邮箱 | VARCHAR(32) | No | No | |||
createtime | 创建时间 | INT UNSIGNED | No | No | ||
send_time | INT UNSIGNED | No | No | |||
sendstatus | 状态\ | ready:准备发送;send:以发送; | VARCHAR(5) | No | ready | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | gnotify_id | Yes |
1.186. sysuser_user_point
会员积分值详细记录表[作废]
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
point_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |||
user_id | INT UNSIGNED | Yes | No | |||
modified_time | 记录时间 | INT UNSIGNED | No | No | ||
behavior_type | 行为类型\ | obtain:获得;consume:消费; | VARCHAR(7) | No | obtain | No |
behavior | 行为描述 | VARCHAR(100) | Yes | No | ||
point | 积分值 | BIGINT | No | 0 | No | |
remark | 备注(记录订单号) | VARCHAR(500) | No | No | ||
expiration_time | 积分过期时间 | INT UNSIGNED | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | point_id | Yes | |
ind_user_id | user_id | No | |
ind_modified_time | modified_time | No | |
ind_expiration_time | expiration_time | No |
1.187. sysuser_user_pointlog
会员积分值明细表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement | |
---|---|---|---|---|---|---|
pointlog_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |||
user_id | INT UNSIGNED | Yes | No | |||
modified_time | 记录时间 | INT UNSIGNED | No | No | ||
behavior_type | 行为类型\ | obtain:获得;consume:消费; | VARCHAR(7) | No | obtain | No |
behavior | 行为描述 | VARCHAR(100) | Yes | No | ||
point | 积分值 | BIGINT | No | 0 | No | |
remark | 备注(记录订单号) | VARCHAR(500) | No | No | ||
expiration_time | 积分过期时间 | INT UNSIGNED | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | pointlog_id | Yes | |
ind_user_id | user_id | No | |
ind_modified_time | modified_time | No | |
ind_expiration_time | expiration_time | No |
1.188. sysuser_user_points
会员积分表
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
user_id | INT UNSIGNED | Yes | No | ||
point_count | 会员总积分值 | BIGINT | No | 0 | No |
expired_point | 将要过期积分 | BIGINT | No | 0 | No |
modified_time | 记录时间 | INT UNSIGNED | No | No | |
expired_time | 过期时间 | INT UNSIGNED | No | 0 | No |
- 索引
Key name | Column names | Unique | Comment |
---|---|---|---|
primary | user_id | Yes | |
ind_modified_time | modified_time | No |
1.189. sysuser_user_trade_count
- 表结构
ColumnName | Comment | Type | Not null | Default | Autoincrement |
---|---|---|---|---|---|
user_id | 会员id | INT UNSIGNED | No | No | |
unpay | 未支付订单数量 | INT UNSIGNED | No | No | |
undelivery | 未发货订单数量 | INT UNSIGNED | No | No | |
unreceived | 未确认收货订单数量 | INT UNSIGNED | No | No | |
unrate | 未评论订单 | INT UNSIGNED | No | No |