MySQL Create Table SQL
Table Structure: okayapi_landi_room_meter:/tablelist/okayapi_landi_room_meter.html
-- MySQL Table okayapi_landi_room_meter
-- From: OkayAPI.com
CREATE TABLE `okayapi_landi_room_meter` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`room_id` int(11) NULL COMMENT '',
`okayapi_landi_room_meter_type` varchar(11) NULL COMMENT 'water gas elec',
`meter_number` varchar(64) NULL COMMENT '',
`year_init_val` double NULL COMMENT '',
`last_month_val` double NULL COMMENT '',
`cur_val` double NULL COMMENT '',
`okayapi_landi_room_meter_month` int(10) NULL COMMENT '计费月份',
`step` int(5) NULL COMMENT '阶梯计价',
`money` double NULL COMMENT '',
KEY `room_id` (`room_id`),
KEY `okayapi_landi_room_meter_type` (`okayapi_landi_room_meter_type`),
KEY `meter_number` (`meter_number`),
KEY `year_init_val` (`year_init_val`),
KEY `last_month_val` (`last_month_val`),
KEY `cur_val` (`cur_val`),
KEY `okayapi_landi_room_meter_month` (`okayapi_landi_room_meter_month`),
KEY `step` (`step`),
KEY `money` (`money`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'LD酒店租房管理-房间计费';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-9 of 9 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
room_id | int(11) | 是 | Normal Index | |||
okayapi_landi_room_meter_type | varchar(11) | 是 | water gas elec | |||
meter_number | varchar(64) | 是 | Unique Index | |||
year_init_val | double | 是 | ||||
last_month_val | double | 是 | ||||
cur_val | double | 是 | ||||
okayapi_landi_room_meter_month | int(10) | 是 | 计费月份 | |||
step | int(5) | 是 | 阶梯计价 | |||
money | double | 是 |