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

MySQL建表SQL语句

数据库结构:博客-信息:https://open.yesapi.cn/tablelist/yesapi_tbl_message.html


-- 数据库大全:博客-信息
-- 来源:YesApi.cn
CREATE TABLE `yesapi_tbl_message` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `content` varchar(255) NULL COMMENT '',
    `sender` int(11) NULL COMMENT '发送者用户id',
    `receiver` int(11) NULL COMMENT '接收者用户id',
    `status` int(1) NULL DEFAULT '0' COMMENT '0 :未读,1:以读',
    `create_time` datetime NULL COMMENT '',
    `type` varchar(32) NULL COMMENT '',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '博客-信息';

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


MySQL数据库表结构设计

第 1-6 条, 共 6 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
contentvarchar(255)无索引
senderint(11)发送者用户id无索引
receiverint(11)接收者用户id无索引
statusint(1)00 :未读,1:以读无索引0
create_timedatetime无索引
typevarchar(32)无索引

猜你喜欢

MySQL数据库设计 博客-用户token信息

MySQL数据库设计 博客-文章

MySQL数据库设计 博客-社交登陆中间表

MySQL数据库设计 博客-文章目录

MySQL数据库设计 博客-文章标签

MySQL数据库设计 博客-分类表

MySQL数据库设计 博客-路径表

MySQL数据库设计 博客-日志表

MySQL数据库设计 博客-菜单表

MySQL数据库设计 博客-选项表

MySQL数据库设计 博客-标签表

MySQL数据库设计 博客-用户表

MySQL数据库设计 博客-文章表

MySQL数据库设计 博客-文章图片表

MySQL数据库设计 博客-文章标签表

MySQL数据库设计 博客-目录表

MySQL数据库设计 博客-随言表

MySQL数据库设计 博客-评论表

MySQL数据库设计 博客-配置开关表

MySQL数据库设计 博客-链接表



回到顶部 ↑