+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_opentrip_travel_order:/tablelist/okayapi_opentrip_travel_order.html


-- MySQL Table okayapi_opentrip_travel_order
-- From: OkayAPI.com
CREATE TABLE `okayapi_opentrip_travel_order` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `user_id` int(10) NOT NULL COMMENT '购买者用户ID',
    `product` text NOT NULL COMMENT '商品信息',
    `address` text NOT NULL COMMENT '收件人信息',
    `price` decimal(10,2) NOT NULL COMMENT '订单价格',
    `cancel` enum('yes','no') NOT NULL COMMENT '是否取消',
    `payment` enum('yes','no') NOT NULL COMMENT '是否支付',
    KEY `user_id` (`user_id`),
    KEY `product` (`product`),
    KEY `address` (`address`),
    KEY `price` (`price`),
    KEY `cancel` (`cancel`),
    KEY `payment` (`payment`),
    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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
user_idint(10)购买者用户ID
producttext商品信息
addresstext收件人信息
pricedecimal(10,2)订单价格
cancelenum('yes','no')是否取消
paymentenum('yes','no')是否支付

Guess You Like

MySQL Table Design okayapi_opentrip_travel_admin

MySQL Table Design okayapi_opentrip_travel_category

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_depots

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 ↑