建表字段

CREATE TABLE `enterprise_members` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`member_card` varchar(30) NOT NULL COMMENT '卡号',
`mobile` varchar(20) DEFAULT NULL COMMENT '手机号',
`username` varchar(100) DEFAULT NULL COMMENT '会员名',
`sex` tinyint(1) unsigned DEFAULT NULL COMMENT '会员性别 1:男 /2:女',
`ctime` int(11) unsigned DEFAULT NULL COMMENT '卡创建时间',
`utime` int(11) unsigned DEFAULT NULL COMMENT '卡更新时间',
`btime` int(11) unsigned DEFAULT NULL COMMENT '打通时间',
`openid` varchar(255) DEFAULT NULL COMMENT '微信openid',
`user_json` varchar(1024) DEFAULT NULL COMMENT '会员json数据',
`befrom` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '生成方式,1:xls表 2:添加',
`bonus` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '会员积分',
`type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '会员卡类型 0:新卡号 1存量卡号',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态 0:未绑定 1绑定',
`wx_mid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '微信会员关联字段',
`ent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '商家信息关联字段',
PRIMARY KEY (`id`),
UNIQUE KEY `member_card` (`member_card`(11)) USING BTREE COMMENT '会员卡卡号',
KEY `ent_id` (`ent_id`) COMMENT '商户信息关联字段',
KEY `wx_mid` (`wx_mid`) USING BTREE COMMENT '微信会员信息关联字段',
KEY `user_type` (`type`) USING BTREE COMMENT '用户类型',
KEY `status` (`status`) USING BTREE COMMENT '会员卡状态'
) ENGINE=InnoDB DEFAULT CHARSET=utf8

转载于:https://www.cnblogs.com/xiong63/p/8649405.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值