Files
user-auth/sql/init_table.sql
T

17 lines
444 B
SQL

drop table if exists user;
drop table if exists admin;
create table user(
id varchar(100) primary key not null,
name varchar(50) not null,
passwd varchar(120),
create_time datetime not null,
update_time datetime
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- 大小写敏感
create table admin(
id integer primary key auto_increment,
name varchar(50) not null,
passwd varchar(120) not null
);