MySQL Create Table SQL
Table Structure: okayapi_travel_orders:/tablelist/okayapi_travel_orders.html
-- MySQL Table okayapi_travel_orders
-- From: OkayAPI.com
CREATE TABLE `okayapi_travel_orders` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`seller_id` int(11) NOT NULL DEFAULT '0' COMMENT '销售人员id,0系统自动出票',
`buyer_id` int(10) NOT NULL DEFAULT '0' COMMENT '买家ID 比如 导游id',
`depot_id` int(8) NOT NULL DEFAULT '0' COMMENT '入库ID',
`created` bigint(12) NOT NULL COMMENT '',
`updated` int(11) NOT NULL DEFAULT '0' COMMENT '',
`active` int(1) NOT NULL COMMENT '',
`price` decimal(8,2) NOT NULL COMMENT '',
KEY `seller_id` (`seller_id`),
KEY `buyer_id` (`buyer_id`),
KEY `depot_id` (`depot_id`),
KEY `created` (`created`),
KEY `updated` (`updated`),
KEY `active` (`active`),
KEY `price` (`price`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '旅游售票-销售票记录';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-7 of 7 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
seller_id | int(11) | 0 | 否 | 销售人员id,0系统自动出票 | 0 | |
buyer_id | int(10) | 0 | 否 | 买家ID 比如 导游id | 0 | |
depot_id | int(8) | 0 | 否 | 入库ID | 0 | |
created | bigint(12) | 否 | ||||
updated | int(11) | 0 | 否 | 0 | ||
active | int(1) | 否 | ||||
price | decimal(8,2) | 否 |