MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_message:/tablelist/okayapi_shopxo_s_message.html
-- MySQL Table okayapi_shopxo_s_message
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_message` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`title` char(60) NOT NULL COMMENT '标题',
`detail` char(255) NOT NULL COMMENT '详情',
`business_id` int(11) NOT NULL DEFAULT '0' COMMENT '业务id',
`business_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '业务类型(0默认, 1订单, 2充值, 3提现, ...)',
`okayapi_shopxo_s_message_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '消息类型(0普通通知, ...)',
`is_read` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否已读(0否, 1是)',
`is_delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '是否已删除(0否, 大于0删除时间)',
`user_is_delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '用户是否已删除(0否, 大于0删除时间)',
KEY `user_id` (`user_id`),
KEY `title` (`title`),
KEY `detail` (`detail`),
KEY `business_id` (`business_id`),
KEY `business_type` (`business_type`),
KEY `okayapi_shopxo_s_message_type` (`okayapi_shopxo_s_message_type`),
KEY `is_read` (`is_read`),
KEY `is_delete_time` (`is_delete_time`),
KEY `user_is_delete_time` (`user_is_delete_time`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'ShopXO商城-消息';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-9 of 9 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(11) | 0 | 否 | 用户id | Normal Index | 0 |
title | char(60) | 否 | 标题 | |||
detail | char(255) | 否 | 详情 | |||
business_id | int(11) | 0 | 否 | 业务id | 0 | |
business_type | tinyint(2) | 0 | 否 | 业务类型(0默认, 1订单, 2充值, 3提现, ...) | 0 | |
okayapi_shopxo_s_message_type | tinyint(1) | 0 | 否 | 消息类型(0普通通知, ...) | 0 | |
is_read | tinyint(1) | 1 | 否 | 是否已读(0否, 1是) | 1 | |
is_delete_time | int(11) | 0 | 否 | 是否已删除(0否, 大于0删除时间) | 0 | |
user_is_delete_time | int(11) | 0 | 否 | 用户是否已删除(0否, 大于0删除时间) | 0 |