init sql
This commit is contained in:
parent
8122ab2b26
commit
d91477263f
1 changed files with 10 additions and 0 deletions
10
database/sql/init.sql
Normal file
10
database/sql/init.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
-- 插入超級管理員帳號
|
||||||
|
-- 密碼 'abc123' 使用 bcrypt 加密
|
||||||
|
INSERT INTO `admins` (`username`, `password`, `role`, `created_at`, `updated_at`)
|
||||||
|
VALUES (
|
||||||
|
'admin',
|
||||||
|
'$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', -- 'abc123' 的 bcrypt hash
|
||||||
|
'super',
|
||||||
|
CURRENT_TIMESTAMP,
|
||||||
|
CURRENT_TIMESTAMP
|
||||||
|
);
|
||||||
Loading…
Reference in a new issue