MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_user_address:/tablelist/okayapi_shopxo_s_user_address.html
-- MySQL Table okayapi_shopxo_s_user_address
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_user_address` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '站点所属用户id',
`alias` char(60) NOT NULL COMMENT '别名',
`okayapi_shopxo_s_user_address_name` char(60) NOT NULL COMMENT '姓名',
`tel` char(15) NOT NULL COMMENT '电话',
`province` int(11) NOT NULL DEFAULT '0' COMMENT '所在省',
`city` int(11) NOT NULL DEFAULT '0' COMMENT '所在市',
`county` int(11) NOT NULL DEFAULT '0' COMMENT '所在县/区',
`address` char(80) NOT NULL COMMENT '详细地址',
`lng` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '经度',
`lat` decimal(13,10) unsigned NOT NULL DEFAULT '0.0000000000' COMMENT '纬度',
`is_default` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否默认地址(0否, 1是)',
`is_delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除(0否,1删除时间戳)',
`upd_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
KEY `user_id` (`user_id`),
KEY `alias` (`alias`),
KEY `okayapi_shopxo_s_user_address_name` (`okayapi_shopxo_s_user_address_name`),
KEY `tel` (`tel`),
KEY `province` (`province`),
KEY `city` (`city`),
KEY `county` (`county`),
KEY `address` (`address`),
KEY `lng` (`lng`),
KEY `lat` (`lat`),
KEY `is_default` (`is_default`),
KEY `is_delete_time` (`is_delete_time`),
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-13 of 13 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(11) | 0 | 否 | 站点所属用户id | Normal Index | 0 |
alias | char(60) | 否 | 别名 | |||
okayapi_shopxo_s_user_address_name | char(60) | 否 | 姓名 | |||
tel | char(15) | 否 | 电话 | |||
province | int(11) | 0 | 否 | 所在省 | 0 | |
city | int(11) | 0 | 否 | 所在市 | 0 | |
county | int(11) | 0 | 否 | 所在县/区 | 0 | |
address | char(80) | 否 | 详细地址 | |||
lng | decimal(13,10) unsigned | 0.0000000000 | 否 | 经度 | 0.0000000000 | |
lat | decimal(13,10) unsigned | 0.0000000000 | 否 | 纬度 | 0.0000000000 | |
is_default | tinyint(1) | 0 | 否 | 是否默认地址(0否, 1是) | 0 | |
is_delete_time | int(11) | 0 | 否 | 是否删除(0否,1删除时间戳) | Normal Index | 0 |
upd_time | int(11) | 0 | 否 | 更新时间 | 0 |