MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_order_status_history:/tablelist/okayapi_shopxo_s_order_status_history.html
-- MySQL Table okayapi_shopxo_s_order_status_history
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_order_status_history` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单id',
`original_status` varchar(60) NOT NULL COMMENT '原始状态',
`new_status` varchar(60) NOT NULL COMMENT '最新状态',
`msg` varchar(255) NOT NULL COMMENT '操作描述',
`creator` int(11) NOT NULL DEFAULT '0' COMMENT '创建-用户id',
`creator_name` varchar(60) NOT NULL COMMENT '创建人-姓名',
KEY `order_id` (`order_id`),
KEY `original_status` (`original_status`),
KEY `new_status` (`new_status`),
KEY `msg` (`msg`),
KEY `creator` (`creator`),
KEY `creator_name` (`creator_name`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'ShopXO商城-订单状态历史纪录';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-6 of 6 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
order_id | int(11) | 0 | 否 | 订单id | Normal Index | 0 |
original_status | varchar(60) | 否 | 原始状态 | Normal Index | ||
new_status | varchar(60) | 否 | 最新状态 | Normal Index | ||
msg | varchar(255) | 否 | 操作描述 | |||
creator | int(11) | 0 | 否 | 创建-用户id | 0 | |
creator_name | varchar(60) | 否 | 创建人-姓名 |