+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
user_idint(11)0站点所属用户idNormal Index0
aliaschar(60)别名
okayapi_shopxo_s_user_address_namechar(60)姓名
telchar(15)电话
provinceint(11)0所在省0
cityint(11)0所在市0
countyint(11)0所在县/区0
addresschar(80)详细地址
lngdecimal(13,10) unsigned0.0000000000经度0.0000000000
latdecimal(13,10) unsigned0.0000000000纬度0.0000000000
is_defaulttinyint(1)0是否默认地址(0否, 1是)0
is_delete_timeint(11)0是否删除(0否,1删除时间戳)Normal Index0
upd_timeint(11)0更新时间0

Guess You Like

MySQL Table Design okayapi_goods

MySQL Table Design okayapi_goods_comment

MySQL Table Design okayapi_shopxo_s_admin

MySQL Table Design okayapi_shopxo_s_answer

MySQL Table Design okayapi_shopxo_s_app_center_nav

MySQL Table Design okayapi_shopxo_s_app_home_nav

MySQL Table Design okayapi_shopxo_s_article

MySQL Table Design okayapi_shopxo_s_article_category

MySQL Table Design okayapi_shopxo_s_attachment

MySQL Table Design okayapi_shopxo_s_brand

MySQL Table Design okayapi_shopxo_s_brand_category

MySQL Table Design okayapi_shopxo_s_cart

MySQL Table Design okayapi_shopxo_s_config

MySQL Table Design okayapi_shopxo_s_custom_view

MySQL Table Design okayapi_shopxo_s_express

MySQL Table Design okayapi_shopxo_s_goods

MySQL Table Design okayapi_shopxo_s_goods_browse

MySQL Table Design okayapi_shopxo_s_goods_category

MySQL Table Design okayapi_shopxo_s_goods_category_join

MySQL Table Design okayapi_shopxo_s_goods_comments

TOP ↑