Files
my_sys/IDEA/api/db/dm8.sql
DelLevin-Home 71de5323aa 首次提交
2026-01-13 10:06:37 +08:00

28 lines
770 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
CREATE TABLE tb_user (
id bigint NOT NULL,
username varchar(50) NOT NULL,
mobile varchar(20) NOT NULL,
password varchar(64),
create_date datetime,
PRIMARY KEY (id)
);
CREATE UNIQUE INDEX idx_user_username on tb_user(username);
CREATE TABLE tb_token (
id bigint NOT NULL,
user_id bigint NOT NULL,
token varchar(100) NOT NULL,
expire_date datetime,
update_date datetime,
PRIMARY KEY (id)
);
CREATE UNIQUE INDEX idx_token_user_id on tb_token(user_id);
CREATE UNIQUE INDEX idx_token on tb_token(token);
-- 账号13612345678 密码admin
INSERT INTO tb_user (id, username, mobile, password, create_date) VALUES (1067246875800000168, 'mark', '13612345678', '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918', now());
commit;