|
@@ -13,10 +13,15 @@ create table sys_user
|
|
|
be_active CHAR(1) not null default 'Y' comment '是否活动 Y=活动/N=禁用/D=删除',
|
|
|
create_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '建立时间',
|
|
|
update_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新日期',
|
|
|
- primary key ( user_id )
|
|
|
+ primary key ( user_id ),
|
|
|
+ UNIQUE INDEX `login_name`(`login_name`) USING BTREE
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = '用户资料';
|
|
|
|
|
|
-
|
|
|
+-- insert into sys_user
|
|
|
+-- select ur.user_id,'账户','密码',ur.role_id as user_type,uo.nick_name,'Y',now(),now() from sys_uptown_home uh
|
|
|
+-- left join sys_user_role ur on ur.property_id = uh.house_id
|
|
|
+-- left join sys_user_open uo on uo.user_id = ur.user_id
|
|
|
+-- where uh.phone = "电话号码"
|
|
|
|
|
|
drop table if exists sys_user_open;
|
|
|
create table sys_user_open
|