MySQL数据库表结构设计
第 1-7 条, 共 7 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
sender_uid | int(11) | 是 | 发送者ID | 无索引 | ||
recipient_uid | int(11) | 0 | 是 | 接收者ID | 无索引 | 0 |
action_type | int(4) | 是 | 操作类型 | 无索引 | ||
model_type | smallint(11) | 0 | 否 | 无索引 | 0 | |
source_id | varchar(16) | 0 | 否 | 关联 ID | 无索引 | 0 |
yesapi_notification_data | text | 是 | 通知内容 | 无索引 | ||
read_flag | tinyint(1) | 0 | 是 | 阅读状态 | 无索引 | 0 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:系统通知:https://open.yesapi.cn/tablelist/yesapi_notification.html
-- 数据库大全:系统通知
-- 来源:YesApi.cn
CREATE TABLE `yesapi_notification` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`sender_uid` int(11) NULL COMMENT '发送者ID',
`recipient_uid` int(11) NULL DEFAULT '0' COMMENT '接收者ID',
`action_type` int(4) NULL COMMENT '操作类型',
`model_type` smallint(11) NULL DEFAULT '0' COMMENT '',
`source_id` varchar(16) NULL DEFAULT '0' COMMENT '关联 ID',
`yesapi_notification_data` text NULL COMMENT '通知内容',
`read_flag` tinyint(1) NULL DEFAULT '0' COMMENT '阅读状态',
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '系统通知';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢

