+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_smpss_member:/tablelist/okayapi_smpss_member.html


-- MySQL Table okayapi_smpss_member
-- From: OkayAPI.com
CREATE TABLE `okayapi_smpss_member` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `membercardid` varchar(16) NOT NULL COMMENT '会员卡ID',
    `realname` varchar(32) NOT NULL COMMENT '真实名字',
    `phone` varchar(16) NOT NULL COMMENT '座机',
    `mobile` varchar(16) NOT NULL COMMENT '手机',
    `email` varchar(32) NOT NULL COMMENT '邮箱',
    `prov_id` int(10) NOT NULL COMMENT '省份ID',
    `prov_name` varchar(32) NOT NULL COMMENT '省份名称',
    `city_id` int(10) NOT NULL COMMENT '城市ID',
    `city_name` varchar(32) NOT NULL COMMENT '城市名称',
    `address` varchar(200) NOT NULL COMMENT '地址',
    `zipcode` int(7) NOT NULL COMMENT '邮编',
    `cardid` varchar(18) NOT NULL COMMENT '身份证',
    `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态0停用 1可用',
    `grade` tinyint(1) NOT NULL DEFAULT '1' COMMENT '会员等级',
    `credit` int(10) NOT NULL DEFAULT '0' COMMENT '购物积分',
    `regdateymd` date NOT NULL COMMENT '注册时间YMD',
    `regdateline` int(10) NOT NULL COMMENT '注册时间',
    `lastdateline` int(10) NOT NULL COMMENT '最后购物时间',
    KEY `membercardid` (`membercardid`),
    KEY `realname` (`realname`),
    KEY `phone` (`phone`),
    KEY `mobile` (`mobile`),
    KEY `email` (`email`),
    KEY `prov_id` (`prov_id`),
    KEY `prov_name` (`prov_name`),
    KEY `city_id` (`city_id`),
    KEY `city_name` (`city_name`),
    KEY `address` (`address`),
    KEY `zipcode` (`zipcode`),
    KEY `cardid` (`cardid`),
    KEY `state` (`state`),
    KEY `grade` (`grade`),
    KEY `credit` (`credit`),
    KEY `regdateymd` (`regdateymd`),
    KEY `regdateline` (`regdateline`),
    KEY `lastdateline` (`lastdateline`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '进销存-会员信息表';

After replication, you can go to the database to create the database table.


MySQL database table structure design

Displaying 1-18 of 18 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
membercardidvarchar(16)会员卡ID
realnamevarchar(32)真实名字
phonevarchar(16)座机
mobilevarchar(16)手机
emailvarchar(32)邮箱
prov_idint(10)省份ID
prov_namevarchar(32)省份名称
city_idint(10)城市ID
city_namevarchar(32)城市名称
addressvarchar(200)地址
zipcodeint(7)邮编
cardidvarchar(18)身份证
statetinyint(1)1状态0停用 1可用1
gradetinyint(1)1会员等级1
creditint(10)0购物积分0
regdateymddate注册时间YMDNormal Index
regdatelineint(10)注册时间
lastdatelineint(10)最后购物时间

Guess You Like

MySQL Table Design okayapi_smpss_admin

MySQL Table Design okayapi_smpss_category

MySQL Table Design okayapi_smpss_goods

MySQL Table Design okayapi_smpss_group

MySQL Table Design okayapi_smpss_log

MySQL Table Design okayapi_smpss_mbgroup

MySQL Table Design okayapi_smpss_purchase

MySQL Table Design okayapi_smpss_region

MySQL Table Design okayapi_smpss_sales

MySQL Table Design okayapi_smpss_system

MySQL Table Design okayapi_smpss_tempsales

MySQL Table Design okayapi_dberp_accounts_receivable

MySQL Table Design okayapi_dberp_accounts_receivable_log

MySQL Table Design okayapi_dberp_admin

MySQL Table Design okayapi_dberp_admin_group

MySQL Table Design okayapi_dberp_app

MySQL Table Design okayapi_dberp_brand

MySQL Table Design okayapi_dberp_customer

MySQL Table Design okayapi_dberp_customer_category

MySQL Table Design okayapi_dberp_finance_payable

TOP ↑