This commit is contained in:
Jethro Lin 2024-12-05 11:38:28 +08:00
parent 8122ab2b26
commit d91477263f

10
database/sql/init.sql Normal file
View 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
);