MySQL Create Table SQL
Table Structure: okayapi_travel_agents:/tablelist/okayapi_travel_agents.html
-- MySQL Table okayapi_travel_agents
-- From: OkayAPI.com
CREATE TABLE `okayapi_travel_agents` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`pay_mode` set('prepaid','credit') NOT NULL DEFAULT 'prepaid' COMMENT '预付、信用支付',
`consume_mode` set('') NOT NULL COMMENT '',
`discount` double(3,2) NOT NULL DEFAULT '1.00' COMMENT '1表示无折扣',
`okayapi_travel_agents_name` varchar(200) NOT NULL COMMENT '公司名',
`active` int(1) NOT NULL DEFAULT '1' COMMENT '默认正常,-1限制出票',
`remark` varchar(200) NOT NULL COMMENT '备注',
KEY `pay_mode` (`pay_mode`),
KEY `consume_mode` (`consume_mode`),
KEY `discount` (`discount`),
KEY `okayapi_travel_agents_name` (`okayapi_travel_agents_name`),
KEY `active` (`active`),
KEY `remark` (`remark`),
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-6 of 6 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
pay_mode | set('prepaid','credit') | prepaid | 否 | 预付、信用支付 | prepaid | |
consume_mode | set('') | 否 | ||||
discount | double(3,2) | 1.00 | 否 | 1表示无折扣 | 1.00 | |
okayapi_travel_agents_name | varchar(200) | 否 | 公司名 | |||
active | int(1) | 1 | 否 | 默认正常,-1限制出票 | 1 | |
remark | varchar(200) | 否 | 备注 |