21 lines
710 B
SQL
21 lines
710 B
SQL
drop table if exists user;
|
|
drop table if exists admin;
|
|
|
|
create table user(
|
|
id integer primary key not null auto_increment,
|
|
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
|
|
);
|
|
|
|
-- 默认管理员账号 "admin",密码 "admin"
|
|
-- 仅开发,测试环境用
|
|
-- insert into admin(name, passwd) values("admin", "$argon2id$v=19$m=65536,t=2,p=1$B7OnAywQYuZSYvu8twgQOo0VRrZjJBIMqezakOjkWgU$+0wIE/FR4rDBVQzAp+l7u1REi8/+tneNzSHhs2dd+n4");
|