MySQL Create Table SQL
Table Structure: okayapi_72crm_oa_examine_travel:/tablelist/okayapi_72crm_oa_examine_travel.html
-- MySQL Table okayapi_72crm_oa_examine_travel
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_oa_examine_travel` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`travel_id` int(11) NULL COMMENT '',
`examine_id` int(11) NULL COMMENT '审批ID',
`start_address` varchar(100) NULL COMMENT '出发地',
`start_time` datetime NULL COMMENT '出发时间',
`end_address` varchar(100) NULL COMMENT '目的地',
`end_time` datetime NULL COMMENT '到达时间',
`traffic` decimal(18,2) NULL COMMENT '交通费',
`stay` decimal(18,2) NULL COMMENT '住宿费',
`diet` decimal(18,2) NULL COMMENT '餐饮费',
`other` decimal(18,2) NULL COMMENT '其他费用',
`money` decimal(18,2) NULL COMMENT '金额',
`vehicle` varchar(255) NULL COMMENT '交通工具',
`trip` varchar(50) NULL COMMENT '单程往返(单程、往返)',
`duration` decimal(4,1) NULL COMMENT '时长',
`description` varchar(500) NULL COMMENT '备注',
`batch_id` varchar(32) NULL COMMENT '批次id',
KEY `travel_id` (`travel_id`),
KEY `examine_id` (`examine_id`),
KEY `start_address` (`start_address`),
KEY `start_time` (`start_time`),
KEY `end_address` (`end_address`),
KEY `end_time` (`end_time`),
KEY `traffic` (`traffic`),
KEY `stay` (`stay`),
KEY `diet` (`diet`),
KEY `other` (`other`),
KEY `money` (`money`),
KEY `vehicle` (`vehicle`),
KEY `trip` (`trip`),
KEY `duration` (`duration`),
KEY `description` (`description`),
KEY `batch_id` (`batch_id`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'CRM-差旅行程表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-16 of 16 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
travel_id | int(11) | 否 | ||||
examine_id | int(11) | 否 | 审批ID | |||
start_address | varchar(100) | 是 | 出发地 | |||
start_time | datetime | 是 | 出发时间 | |||
end_address | varchar(100) | 是 | 目的地 | |||
end_time | datetime | 是 | 到达时间 | |||
traffic | decimal(18,2) | 是 | 交通费 | |||
stay | decimal(18,2) | 是 | 住宿费 | |||
diet | decimal(18,2) | 是 | 餐饮费 | |||
other | decimal(18,2) | 是 | 其他费用 | |||
money | decimal(18,2) | 是 | 金额 | |||
vehicle | varchar(255) | 是 | 交通工具 | |||
trip | varchar(50) | 是 | 单程往返(单程、往返) | |||
duration | decimal(4,1) | 是 | 时长 | |||
description | varchar(500) | 是 | 备注 | |||
batch_id | varchar(32) | 是 | 批次id |