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

MySQL建表SQL语句

数据库结构:私信:https://open.yesapi.cn/tablelist/yesapi_chat_message.html


-- 数据库大全:私信
-- 来源:YesApi.cn
CREATE TABLE `yesapi_chat_message` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `chat_message_to_uuid` varchar(32) NOT NULL COMMENT '对话的uuid',
    `chat_message_data` text NOT NULL COMMENT '私信消息数据',
    `chat_message_type` varchar(255) NOT NULL COMMENT '私信消息类型,text普通文本,html富文本,image图片,link链接,custom自定义',
    `chat_message_is_read` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0未读,1已读',
    `chat_message_io` varchar(5) NOT NULL COMMENT 'in为接收到的消息,out为发出的消息',
    KEY `chat_message_to_uuid` (`chat_message_to_uuid`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '私信';

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


MySQL数据库表结构设计

第 1-5 条, 共 5 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
chat_message_to_uuidvarchar(32)对话的uuid普通索引
chat_message_datatext私信消息数据无索引
chat_message_typevarchar(255)私信消息类型,text普通文本,html富文本,image图片,link链接,custom自定义无索引
chat_message_is_readtinyint(4)00未读,1已读无索引0
chat_message_iovarchar(5)in为接收到的消息,out为发出的消息无索引

猜你喜欢



回到顶部 ↑