MySQL数据库表结构设计
第 1-9 条, 共 9 条.
| 字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
|---|---|---|---|---|---|---|
| msg_title | varchar(200) | 是 | 无索引 | |||
| msg_datetime | datetime | 否 | 无索引 | |||
| msg_content | longtext | 否 | 无索引 | |||
| from_users_id | bigint(20) | 是 | 普通索引 | |||
| to_users_id | bigint(20) | 否 | 普通索引 | |||
| is_read | tinyint(1) | 0 | 否 | 无索引 | 0 | |
| from_del | tinyint(1) | 0 | 否 | 无索引 | 0 | |
| to_del | tinyint(1) | 0 | 否 | 无索引 | 0 | |
| read_time | datetime | 是 | 无索引 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:图片分享-消息:https://open.yesapi.cn/tablelist/yesapi_linger_message.html
-- 数据库大全:图片分享-消息
-- 来源:YesApi.cn
CREATE TABLE `yesapi_linger_message` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`msg_title` varchar(200) NULL COMMENT '',
`msg_datetime` datetime NULL COMMENT '',
`msg_content` longtext NULL COMMENT '',
`from_users_id` bigint(20) NULL COMMENT '',
`to_users_id` bigint(20) NULL COMMENT '',
`is_read` tinyint(1) NULL DEFAULT '0' COMMENT '',
`from_del` tinyint(1) NULL DEFAULT '0' COMMENT '',
`to_del` tinyint(1) NULL DEFAULT '0' COMMENT '',
`read_time` datetime NULL COMMENT '',
KEY `from_users_id` (`from_users_id`),
KEY `to_users_id` (`to_users_id`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '图片分享-消息';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢
粤公网安备44011302002121号
|
