+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_travel_depots:/tablelist/okayapi_travel_depots.html


-- MySQL Table okayapi_travel_depots
-- From: OkayAPI.com
CREATE TABLE `okayapi_travel_depots` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `active` int(1) NOT NULL DEFAULT '0' COMMENT '-1作废,0不正常,1是正常',
    `category_id` int(6) NOT NULL DEFAULT '0' COMMENT '分类id',
    `ticket_no` varchar(100) NOT NULL COMMENT '票号',
    `voucher_total` int(6) NOT NULL DEFAULT '1' COMMENT '总购买数',
    `voucher_remaining` int(6) NOT NULL DEFAULT '0' COMMENT '当前剩余数',
    `valid_start` datetime NOT NULL COMMENT '',
    `valid_ends` datetime NOT NULL COMMENT '',
    `created` bigint(12) NOT NULL DEFAULT '0' COMMENT '',
    `price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '实际销售价格',
    `create_from` set('www_seller','window_seller','import_depot') NOT NULL DEFAULT 'window_seller' COMMENT '票来源,入库、窗口销售、电商平台销售',
    `create_from_id` int(11) NOT NULL DEFAULT '0' COMMENT '此票来源表对应的票,比如入库导入记录表、窗口销售记录表、电商平台销售记录表的ID等',
    KEY `active` (`active`),
    KEY `category_id` (`category_id`),
    KEY `ticket_no` (`ticket_no`),
    KEY `voucher_total` (`voucher_total`),
    KEY `voucher_remaining` (`voucher_remaining`),
    KEY `valid_start` (`valid_start`),
    KEY `valid_ends` (`valid_ends`),
    KEY `created` (`created`),
    KEY `price` (`price`),
    KEY `create_from` (`create_from`),
    KEY `create_from_id` (`create_from_id`),
    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-11 of 11 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
activeint(1)0-1作废,0不正常,1是正常0
category_idint(6)0分类idNormal Index0
ticket_novarchar(100)票号Unique Index
voucher_totalint(6)1总购买数1
voucher_remainingint(6)0当前剩余数0
valid_startdatetime
valid_endsdatetime
createdbigint(12)00
pricedecimal(8,2)0.00实际销售价格0.00
create_fromset('www_seller','window_seller','import_depot')window_seller票来源,入库、窗口销售、电商平台销售window_seller
create_from_idint(11)0此票来源表对应的票,比如入库导入记录表、窗口销售记录表、电商平台销售记录表的ID等0

Guess You Like

MySQL Table Design okayapi_opentrip_travel_admin

MySQL Table Design okayapi_opentrip_travel_category

MySQL Table Design okayapi_opentrip_travel_order

MySQL Table Design okayapi_opentrip_travel_product

MySQL Table Design okayapi_opentrip_travel_shopcart

MySQL Table Design okayapi_opentrip_travel_user

MySQL Table Design okayapi_travel_agents

MySQL Table Design okayapi_travel_agent_users

MySQL Table Design okayapi_travel_categories

MySQL Table Design okayapi_travel_depot_annuals

MySQL Table Design okayapi_travel_depot_logs

MySQL Table Design okayapi_travel_depot_staffs

MySQL Table Design okayapi_travel_depot_vouchers

MySQL Table Design okayapi_travel_devices

MySQL Table Design okayapi_travel_exist_statistics

MySQL Table Design okayapi_travel_features

MySQL Table Design okayapi_travel_groups

MySQL Table Design okayapi_travel_orders

MySQL Table Design okayapi_travel_staff_exchanges

MySQL Table Design okayapi_travel_users

TOP ↑