+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:外卖系统-区域表:https://open.yesapi.cn/tablelist/yesapi_dfz_areas.html


-- 数据库大全:外卖系统-区域表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_dfz_areas` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `region_id` smallint(5) NOT NULL COMMENT '',
    `parent_id` smallint(5) NOT NULL DEFAULT '0' COMMENT '',
    `region_name` varchar(120) NOT NULL COMMENT '',
    `region_type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '',
    `agency_id` smallint(5) NOT NULL DEFAULT '0' COMMENT '',
    KEY `parent_id` (`parent_id`),
    KEY `region_type` (`region_type`),
    KEY `agency_id` (`agency_id`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '外卖系统-区域表';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-5 条, 共 5 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
region_idsmallint(5)无索引
parent_idsmallint(5)0普通索引0
region_namevarchar(120)无索引
region_typetinyint(1)2普通索引2
agency_idsmallint(5)0普通索引0

猜你喜欢

MySQL数据库设计 外卖系统-管理员表

MySQL数据库设计 外卖系统-设备表



回到顶部 ↑