ShopEx 4.85网店系统由近百人资深研发团队,历时7年精心打造,以...
ShopEx 4.85网店系统由近百人资深研发团队,历时7年精心打造,以...
ShopEx登录后台提示“非法授权”后跳转到登录页的解决办法:...
数据库表数量: 130个
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 |
系统应用表
| 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 |
定时任务表
| 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 |
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 |
网络互联表
| 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 |
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 |
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 |
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 |
用户权限账户表
| 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 |
后台搜索过滤器表
| 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 |
后台权限, 角色和用户关联表
| 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 |
后台菜单表
| 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 |
管理员角色表
| 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 |
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 |
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 |
商店后台管理员表
| 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 |
ectools app统计表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| id | ectools统计ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
| service | 对应的service | VARCHAR(80) | Yes | No | |
| interval | hour:hour;day:day;comment:执行监控间隔时间; | VARCHAR(7) | Yes | No | |
| modify | 最后修改时间 | INT UNSIGNED | Yes | 0 | No |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | id | Yes |
ectools统计日志
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| id | ectools统计日志ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
| analysis_id | ectools统计ID | INT UNSIGNED | Yes | No | |
| type | INT UNSIGNED | Yes | 0 | No | |
| target | INT UNSIGNED | Yes | 0 | No | |
| flag | INT UNSIGNED | Yes | 0 | No | |
| value | DOUBLE PRECISION | Yes | 0 | No | |
| time | INT UNSIGNED | Yes | No |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | id | Yes | |
| ind_analysis_id | analysis_id | No | |
| ind_type | type | No | |
| ind_target | target | No | |
| ind_time | time | No |
支付记录
| 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:货到付款; | VARCHAR(7) | 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(100) | 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 |
退款单表
| 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 | ||
| pay_type | online:在线支付;offline:货到付款; | 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 | ||
| 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 |
订单支付单据记录
| 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 |
图片表
| 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) | Yes | 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 |
导出、导入任务表
| 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 |
| 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 |
| 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 |
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 |
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 |
前台链接表
| 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 |
导航菜单表
| 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 |
前台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 |
模板表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| theme | 主题唯一英文名称 | VARCHAR(50) | Yes | No | |
| name | 主题名称 | VARCHAR(50) | No | No | |
| platform | 模板终端|pc:电脑端;wap:无线端; | VARCHAR(3) | 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 |
模板文件表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| id | 模板文件ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
| platform | 模板终端|pc:电脑端;wap:无线端; | VARCHAR(3) | 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 |
页面模板表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| id | 页面模板ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
| platform | 模板终端|pc:电脑端;wap:无线端; | VARCHAR(3) | 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 |
挂件表
| 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 |
挂件实例表
| 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 |
售后申请
| 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:平台已处理退款申请; | 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(60) | Yes | No | ||
| num | INT UNSIGNED | No | No | ||
| reason | VARCHAR(255) | No | No | ||
| description | 申请描述 | VARCHAR(255) | No | No | |
| evidence_pic | 图片凭证信息 | VARCHAR(5120) | No | No | |
| shop_explanation | 商家处理申请说明 | VARCHAR(255) | No | No | |
| admin_explanation | 平台处理申请说明 | VARCHAR(255) | No | No | |
| sendback_data | 消费者提交退货物流信息 | LONGTEXT | No | No | |
| sendconfirm_data | 商家重新发货物流信息 | LONGTEXT | No | No | |
| created_time | INT UNSIGNED | No | No | ||
| modified_time | INT UNSIGNED | 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 |
退款申请表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| refunds_id | 退款申请ID | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
| aftersales_bn | BIGINT UNSIGNED | Yes | No | ||
| refunds_type | 0:售后申请退款;1:商家取消异常订单退款; | VARCHAR(1) | Yes | 0 | No |
| status | 0:待处理;1:已处理;2:已驳回; | VARCHAR(1) | Yes | 0 | No |
| refunds_reason | VARCHAR(255) | No | No | ||
| total_price | NUMERIC(20, 3) | No | 0 | No | |
| created_time | INT UNSIGNED | No | No | ||
| modified_time | INT UNSIGNED | No | No | ||
| user_id | 会员id | INT UNSIGNED | No | No | |
| shop_id | 店铺id | INT UNSIGNED | No | No | |
| tid | 该退款单的主订单号 | LONGTEXT | No | No | |
| oid | 该退款单的订单号 | LONGTEXT | 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 |
品牌表
| 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_disabled | disabled | No | |
| ind_ordernum | order_sort | No |
类别属性值有限表
| 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 |
分类和品牌关联表
| 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 |
商品属性表
| 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 |
属性值表
| 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 |
属性表
| 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 |
商家账号信息
| 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 |
结算明细表
| 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(60) | 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:退款结算; | 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 |
文章主表
| 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 |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | article_id | Yes |
文章节点表
| 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 |
挂件实例表
| 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 |
商品表
| 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) | No | No | |
| weight | 商品重量 | NUMERIC(20, 3) | Yes | 0 | No |
| image_default_id | 商品默认图 | VARCHAR(255) | No | No | |
| list_image | 商品图片 | LONGTEXT | No | No | |
| store | 商品数量 | INT UNSIGNED | Yes | 0 | No |
| freez | 预扣库存 | INT UNSIGNED | 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 | 是否支持下单减库存 | TINYINT(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 |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | item_id | Yes | |
| ind_title | title | No | |
| ind_bn | bn | No |
商品次数表
| 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 |
商品详情表
| 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 |
商品自然属性信息表
| 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 |
商品关联的促销表(新)
| 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 |
商品上下架状态表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| item_id | 商品 ID | INT UNSIGNED | Yes | No | |
| shop_id | 店铺id | INT UNSIGNED | Yes | No | |
| approve_status | 商品状态|onsale:出售中;instock:库中; | VARCHAR(7) | Yes | instock | No |
| list_time | 上架时间 | INT UNSIGNED | No | No | |
| delist_time | 下架时间 | INT UNSIGNED | No | No |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | item_id | Yes |
商品总库存表
| 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 |
货品表
| 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 |
| 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 |
商品库存表
| 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 |
商品规格索引表
| 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 |
优惠券表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| cpns_id | 优惠券方案id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
| cpns_name | 优惠券名称 | VARCHAR(255) | No | No |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | cpns_id | Yes |
发货单表
| 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...) | INT UNSIGNED | 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 |
发货/退货单明细表
| 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 |
物流公司表
| 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 |
快递模板配置表
| 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 | ||
| valuation | 运费计算参数来源|0:按件数;1:按重量;2:按体积; | VARCHAR(1) | No | 1 | No |
| corp_id | 物流公司ID | VARCHAR(255) | No | No | |
| order_sort | INT UNSIGNED | No | 0 | 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 | |
| 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 |
自提点表
| 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 |
店铺请求开放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 |
店铺请求开放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 |
活动规则表
| 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 |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | activity_id | Yes | |
| ind_created_time | created_time | No |
活动商品表
| 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_activity_tag | activity_tag | No | |
| ind_verify_status | verify_status | No | |
| ind_cat_id | cat_id | No |
活动报名表
| 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 |
优惠券表
| 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 |
| 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 | 促销状态|pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(7) | Yes | agree | 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 |
商品与促销规则关联表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| coupon_id | 优惠券ID | INT UNSIGNED | Yes | No | |
| item_id | 商品ID | INT UNSIGNED | Yes | No | |
| leaf_cat_id | 商品关联的平台叶子节点分类ID | INT UNSIGNED | Yes | No | |
| title | 商品名称 | VARCHAR(60) | 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 |
免邮表
| 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 |
商品与促销规则关联表
| 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(60) | 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 |
满折促销规则表
| 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 | 促销状态|pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(7) | Yes | agree | 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 |
商品与促销规则关联表
| 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(60) | 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 |
满减促销规则表
| 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 | 促销状态|pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(7) | Yes | agree | 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 |
商品与促销规则关联表
| 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(60) | 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 |
各种促销关联表
| 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 | 促销状态|pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(7) | Yes | No |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | promotion_id | Yes |
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 | 促销状态|pending:待审核;agree:审核通过;refuse:审核拒绝;cancel:已取消; | VARCHAR(7) | Yes | agree | 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 |
商品与促销规则关联表
| 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(60) | 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 |
评论申诉表
| 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 |
商品咨询表
| 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 |
店铺动态评分统计表
| 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 |
意见反馈表
| 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 |
店铺评分表
| 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 |
商品评分表
| 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_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 | ||
| 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 |
商家会员表
| 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 |
入驻申请表
| 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:类目专营店; | 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 |
角色表
| 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 |
商家账号信息
| 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 | |||
| 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 |
店铺表
| 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:运营商自营店铺; | 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) | Yes | No | ||
| mobile | 手机号 | VARCHAR(50) | Yes | No | |
| shopuser_identity | 店主身份证号 | CHAR(18) | Yes | No | |
| shopuser_identity_img | 店主身份证电子版 | VARCHAR(255) | No | No | |
| shop_area | 店铺所在地区 | VARCHAR(255) | Yes | 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 |
店铺分类表
| 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 |
企业信息表
| 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) | Yes | No | |
| corporate_identity_img | 法人身份证号电子版 | VARCHAR(255) | No | No | |
| license_area | 营业执照所在地 | VARCHAR(255) | Yes | No | |
| license_addr | 营业执照详细地址 | LONGTEXT | Yes | No | |
| establish_date | 成立日期 | INT UNSIGNED | Yes | No | |
| license_indate | 营业执照有效期 | INT UNSIGNED | 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) | Yes | 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) | Yes | 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 |
商家通知表
| 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 |
| 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 |
店铺关联类目表
| 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 |
| 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 |
店铺类型表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| shoptype_id | 自增id | SMALLINT AUTO_INCREMENT | Yes | Yes | |
| shop_type | 店铺类型id|flag:品牌旗舰店;brand:品牌专卖店;cat:类目专营店;self:运营商自营店铺; | 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 | |
| ind_shop_type | shop_type | No |
商品统计表
| 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(60) | 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 |
会员统计表
| 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 |
交易统计表
| 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 |
平台人员操作日志表
| 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 | 操作路由 | VARCHAR(200) | 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 |
| 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 |
邮件短信模板
| 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 |
| 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 |
队列-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 |
店铺人员操作日志表
| 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 | 操作路由 | VARCHAR(50) | No | No | |
| ip | IP | VARCHAR(15) | No | No |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | log_id | Yes | |
| ind_createdtime | created_time | No | |
| ind_adminusername | seller_username | No |
订单使用的活动信息表
| 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 |
购物车
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| cart_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
| user_id | 会员id | INT | Yes | -1 | No |
| user_ident | 会员ident,会员信息和session生成的唯一值 | VARCHAR(50) | Yes | No | |
| shop_id | 店铺ID | INT UNSIGNED | Yes | No | |
| obj_type | 购物车对象类型 | VARCHAR(20) | Yes | No | |
| item_id | 商品id | INT UNSIGNED | Yes | No | |
| sku_id | sku的id | INT UNSIGNED | Yes | No | |
| title | 商品标题 | VARCHAR(60) | Yes | No | |
| image_default_id | 商品默认图 | VARCHAR(255) | No | No | |
| quantity | 数量 | DOUBLE PRECISION | Yes | No | |
| is_checked | 是否购物车选中 | TINYINT(1) | Yes | 0 | 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, user_id | Yes | |
| ind_sku_id | sku_id, user_ident | No | |
| ind_shop_id | shop_id | No | |
| ind_user_id | user_id | No |
购物车使用优惠券表
| 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 |
订单日志表
| 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 |
订单子表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| oid | 子订单编号 | BIGINT UNSIGNED | Yes | No | |
| tid | 订单编号 | BIGINT 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 |
| 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 |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | oid | Yes |
订单投诉表
| 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_oid | oid | Yes | |
| ind_tid | tid | No | |
| ind_status | status | No |
订单使用的促销信息表
| 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 |
订单主表
| 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 | 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_reason | LONGTEXT | No | No | ||
| pay_type | 支付类型|online:线上付款;offline:货到付款; | VARCHAR(7) | Yes | online | No |
| payment | 实付金额,订单最终总额 | 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 |
| 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(50) | 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(20) | 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 | |
| step_paid_fee | 分阶段付款的已付金额 | NUMERIC(20, 3) | No | No | |
| shipping_type | 创建交易时的物流方式|free:卖家包邮;post:平邮;express:快递;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_created_time | created_time | No |
取消异常订单表
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| id | id | BIGINT UNSIGNED AUTO_INCREMENT | Yes | Yes | |
| tid | BIGINT UNSIGNED | Yes | No | ||
| reason | VARCHAR(255) | No | No | ||
| status | WAIT_PROCESSING:等待平台处理;FINISHED:平台已处理;CLOSED:平台已驳回; | VARCHAR(15) | Yes | WAIT_PROCESSING | No |
| reject_reason | VARCHAR(100) | No | No | ||
| created_time | INT UNSIGNED | No | No | ||
| modified_time | INT UNSIGNED | No | No |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | id | Yes | |
| ind_tid | tid | No | |
| ind_created_time | created_time | No | |
| ind_status | status | No |
商城会员用户表
| 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 |
收藏店铺表
| 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 |
| 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 |
商店会员表
| 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 UNSIGNED | 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 |
会员地址表
| 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 |
用户优惠券表
| 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 |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | coupon_code, user_id, shop_id | Yes | |
| ind_tid | tid | No |
会员经验值详细记录表
| 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 |
收藏/缺货登记
| ColumnName | Comment | Type | Not null | Default | Autoincrement |
|---|---|---|---|---|---|
| gnotify_id | INT UNSIGNED AUTO_INCREMENT | Yes | Yes | ||
| item_id | 商品ID | INT UNSIGNED | 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 |
会员等级表
| 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 | |
| ind_experience | experience | No |
缺货表
| 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 |
会员积分值详细记录表
| 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 |
会员积分值明细表
| 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 |
会员积分表
| 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 |
| Key name | Column names | Unique | Comment |
|---|---|---|---|
| primary | user_id | Yes | |
| ind_modified_time | modified_time | No |
| 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 |
| 标签:EcStoreB2B2C数据库词典 | |
| 上一篇:Ecstore2.0数据库词典 | 下一篇:ShopEx安装失败ShopexID登陆接口不通问题解决! |