手记

十八章 .sql文件学习笔记

/------------------------------------客户用户模块---------------------------------------/

创建用户表

create table ci_user(
user_id int unsigned not null auto_increment primary key comment '用户编号',
user_name varchar(20) not null default '' comment '姓名',
user_denlu varchar(20) not null default '' comment '登录名',
phone varchar(20) not null default '' comment '手机',
lever varchar(20) not null default '' comment '权限',
job varchar(20) not null default '' comment '职务',
qq_email varchar(50) not null default '' comment 'qq邮箱',
weixin varchar(50) not null default '' comment '微信',
password char(32) not null default '' comment '密码',
reg_time date not null default 0 comment '注册日期',
typeid varchar(20) not null default '' comment '状态',
ip varchar(100) not null default '' comment 'IP',
sessionid varchar(100) not null default '' comment 'sessionid',
times int unsigned not null default '0' comment '使用次数',
company varchar(50) not null default '' comment '公司',
companycode varchar(20) not null default '' comment '公司代码',
companyclass varchar(20) not null default '' comment '公司类别',
accountname varchar(50) not null default '' comment '开户名',
bankname varchar(50) not null default '' comment '开户行',
bankaccount varchar(50) not null default '' comment '银行账号'
)engine=InnoDB charset=utf8;
/------------------------------------客户用户模块 end-----------------------------------/

1人推荐
随时随地看视频
慕课网APP