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

MySQL建表SQL语句

数据库结构:系统通知: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 '系统通知';

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


MySQL数据库表结构设计

第 1-7 条, 共 7 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
sender_uidint(11)发送者ID无索引
recipient_uidint(11)0接收者ID无索引0
action_typeint(4)操作类型无索引
model_typesmallint(11)0无索引0
source_idvarchar(16)0关联 ID无索引0
yesapi_notification_datatext通知内容无索引
read_flagtinyint(1)0阅读状态无索引0

猜你喜欢



回到顶部 ↑