MySQL Create Table SQL
Table Structure: okayapi_openant_user:/tablelist/okayapi_openant_user.html
-- MySQL Table okayapi_openant_user
-- From: OkayAPI.com
CREATE TABLE `okayapi_openant_user` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL COMMENT '',
`user_group_id` int(11) NOT NULL COMMENT '',
`user_class_id` int(11) NOT NULL COMMENT '',
`sale_class_id` int(11) NOT NULL COMMENT '',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
`firstname` varchar(32) NOT NULL COMMENT '',
`lastname` varchar(32) NOT NULL COMMENT '',
`nickname` varchar(28) NOT NULL COMMENT '',
`gender` varchar(28) NOT NULL COMMENT '',
`email` varchar(96) NOT NULL COMMENT '',
`telephone` varchar(32) NOT NULL COMMENT '',
`okayapi_openant_user_password` varchar(40) NOT NULL COMMENT '',
`image` varchar(255) NOT NULL COMMENT '',
`description` varchar(255) NOT NULL COMMENT '',
`newsletter` tinyint(1) NOT NULL DEFAULT '0' COMMENT '',
`address_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
`user_field` text NOT NULL COMMENT '',
`ip` varchar(40) NOT NULL COMMENT '',
`okayapi_openant_user_status` tinyint(1) NOT NULL COMMENT '',
`safe` tinyint(1) NOT NULL COMMENT '',
`token` text NOT NULL COMMENT '',
`date_added` datetime NOT NULL COMMENT '',
KEY `user_id` (`user_id`),
KEY `user_group_id` (`user_group_id`),
KEY `user_class_id` (`user_class_id`),
KEY `sale_class_id` (`sale_class_id`),
KEY `store_id` (`store_id`),
KEY `firstname` (`firstname`),
KEY `lastname` (`lastname`),
KEY `nickname` (`nickname`),
KEY `gender` (`gender`),
KEY `email` (`email`),
KEY `telephone` (`telephone`),
KEY `okayapi_openant_user_password` (`okayapi_openant_user_password`),
KEY `image` (`image`),
KEY `description` (`description`),
KEY `newsletter` (`newsletter`),
KEY `address_id` (`address_id`),
KEY `user_field` (`user_field`),
KEY `ip` (`ip`),
KEY `okayapi_openant_user_status` (`okayapi_openant_user_status`),
KEY `safe` (`safe`),
KEY `token` (`token`),
KEY `date_added` (`date_added`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'openant电商-用户';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-22 of 22 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(11) | 否 | ||||
user_group_id | int(11) | 否 | ||||
user_class_id | int(11) | 否 | ||||
sale_class_id | int(11) | 否 | ||||
store_id | int(11) | 0 | 否 | 0 | ||
firstname | varchar(32) | 否 | ||||
lastname | varchar(32) | 否 | ||||
nickname | varchar(28) | 否 | ||||
gender | varchar(28) | 否 | ||||
varchar(96) | 否 | |||||
telephone | varchar(32) | 否 | ||||
okayapi_openant_user_password | varchar(40) | 否 | ||||
image | varchar(255) | 否 | ||||
description | varchar(255) | 否 | ||||
newsletter | tinyint(1) | 0 | 否 | 0 | ||
address_id | int(11) | 0 | 否 | 0 | ||
user_field | text | 否 | ||||
ip | varchar(40) | 否 | ||||
okayapi_openant_user_status | tinyint(1) | 否 | ||||
safe | tinyint(1) | 否 | ||||
token | text | 否 | ||||
date_added | datetime | 否 |