MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_answer:/tablelist/okayapi_shopxo_s_answer.html
-- MySQL Table okayapi_shopxo_s_answer
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_answer` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`okayapi_shopxo_s_answer_name` char(30) NOT NULL COMMENT '联系人',
`tel` char(20) NOT NULL COMMENT '联系电话',
`title` char(60) NOT NULL COMMENT '标题',
`content` text NOT NULL COMMENT '详细内容',
`reply` text NOT NULL COMMENT '回复内容',
`is_reply` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已回复(0否, 1是)',
`reply_time` int(11) NOT NULL DEFAULT '0' COMMENT '回复时间',
`is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示(0不显示, 1显示)',
`access_count` int(11) NOT NULL DEFAULT '0' COMMENT '访问次数',
`upd_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
KEY `user_id` (`user_id`),
KEY `okayapi_shopxo_s_answer_name` (`okayapi_shopxo_s_answer_name`),
KEY `tel` (`tel`),
KEY `title` (`title`),
KEY `content` (`content`),
KEY `reply` (`reply`),
KEY `is_reply` (`is_reply`),
KEY `reply_time` (`reply_time`),
KEY `is_show` (`is_show`),
KEY `access_count` (`access_count`),
KEY `upd_time` (`upd_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-11 of 11 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(11) | 0 | 否 | 用户id | 0 | |
okayapi_shopxo_s_answer_name | char(30) | 否 | 联系人 | Normal Index | ||
tel | char(20) | 否 | 联系电话 | |||
title | char(60) | 否 | 标题 | |||
content | text | 是 | 详细内容 | |||
reply | text | 是 | 回复内容 | |||
is_reply | tinyint(1) | 0 | 否 | 是否已回复(0否, 1是) | 0 | |
reply_time | int(11) | 0 | 否 | 回复时间 | 0 | |
is_show | tinyint(1) | 0 | 否 | 是否显示(0不显示, 1显示) | Normal Index | 0 |
access_count | int(11) | 0 | 否 | 访问次数 | 0 | |
upd_time | int(11) | 0 | 否 | 更新时间 | 0 |