zoukankan      html  css  js  c++  java
  • 建表字段

    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

  • 相关阅读:
    Fetch的使用
    if判断中的true和false
    分布式、微服务和集群的初步了解
    关于视频的知识点
    ajax请求
    jq的遍历关系元素方法集合
    docker安装Mysql
    设计模式系列之七大原则之——开闭原则
    设计模式系列之七大原则之——里式替换原则
    设计模式系列之七大原则之——依赖倒转原则
  • 原文地址:https://www.cnblogs.com/xiong63/p/8649405.html
Copyright © 2011-2022 走看看