MySQL数据库表结构设计
第 1-7 条, 共 7 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
hotel_id | int(11) | 否 | 房间所在酒店id | 无索引 | ||
room_number | int(11) | 否 | 房间号 | 无索引 | ||
price | decimal(10,2) | 是 | 房间价格 | 无索引 | ||
yesapi_booking_room_type | tinyint(1) | 否 | 房间类型 | 无索引 | ||
introduction | varchar(255) | 是 | 房间介绍 | 无索引 | ||
reserved_at | int(10) | 是 | 房间预订时间 | 无索引 | ||
yesapi_booking_room_status | tinyint(1) | 否 | 房间当前状态 | 无索引 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:酒店预订管理-房间:https://open.yesapi.cn/tablelist/yesapi_booking_room.html
-- 数据库大全:酒店预订管理-房间
-- 来源:YesApi.cn
CREATE TABLE `yesapi_booking_room` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`hotel_id` int(11) NOT NULL COMMENT '房间所在酒店id',
`room_number` int(11) NOT NULL COMMENT '房间号',
`price` decimal(10,2) NOT NULL COMMENT '房间价格',
`yesapi_booking_room_type` tinyint(1) NOT NULL COMMENT '房间类型',
`introduction` varchar(255) NOT NULL COMMENT '房间介绍',
`reserved_at` int(10) NOT NULL COMMENT '房间预订时间',
`yesapi_booking_room_status` tinyint(1) NOT NULL COMMENT '房间当前状态',
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '酒店预订管理-房间';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢

