From 7031411b3d4668bb89001bf26cc48492d27130b6 Mon Sep 17 00:00:00 2001 From: fish Date: Mon, 13 Apr 2026 20:29:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=BF=81=E7=A7=BB=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=B8=AD=E7=9A=84=E6=B5=8B=E8=AF=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/user-service/migrations/001_init.sql | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/services/user-service/migrations/001_init.sql b/services/user-service/migrations/001_init.sql index 5e59ffc..a3ae2d4 100644 --- a/services/user-service/migrations/001_init.sql +++ b/services/user-service/migrations/001_init.sql @@ -34,18 +34,3 @@ CREATE TABLE IF NOT EXISTS user_login_password ( CREATE INDEX IF NOT EXISTS idx_user_login_password_user_id ON user_login_password(user_id); - --- 插入测试用户(密码: 123456) --- bcrypt hash: $2b$12$REwMlLDCbzR4UpL6MWnzE.AacihwpFvQhGs7vDKTwwyNMb1qBWOTm -DO $$ -DECLARE - v_user_id UUID := '018fa3e0-7e5c-7aaa-8b1d-9f6e4c3b2a10'::UUID; -BEGIN - INSERT INTO user_main (id) VALUES (v_user_id); - - INSERT INTO user_login_account (id, user_id, account) - VALUES ('018fa3e0-7e5c-7bbb-8b1d-9f6e4c3b2a10'::UUID, v_user_id, 'admin'); - - INSERT INTO user_login_password (id, user_id, password) - VALUES ('018fa3e0-7e5c-7ccc-8b1d-9f6e4c3b2a10'::UUID, v_user_id, '$2b$12$REwMlLDCbzR4UpL6MWnzE.AacihwpFvQhGs7vDKTwwyNMb1qBWOTm'); -END $$;