mariadb rebuild

This commit is contained in:
admin
2025-09-30 14:53:22 +07:00
parent 83fc120885
commit 8b2dff8d1d
411 changed files with 5 additions and 2898 deletions

View File

@@ -117,7 +117,7 @@ WHERE r.role_code='VIEWER';
-- 3.4 Initial SUPER_ADMIN user (set real password on first login)
INSERT INTO users (username, password_hash, email, is_active)
VALUES ('superadmin', '$2y$10$PLACEHOLDER_HASH_REPLACE_ON_FIRST_LOGIN', 'superadmin@example.com', 1)
VALUES ('superadmin', '$2y$10$0kjBMxWq7E4G7P.dc8r5i.cjiPBiup553AsFpDfxUt31gKg9h/udq, 'superadmin@example.com', 1)
ON DUPLICATE KEY UPDATE email=VALUES(email), is_active=VALUES(is_active);
INSERT IGNORE INTO user_roles (user_id, role_id)
@@ -147,7 +147,7 @@ WHERE u.username='superadmin';
-- Create editor01 user (password hash placeholder, must change later)
INSERT IGNORE INTO users (username, password_hash, email, is_active)
VALUES ('editor01', '$2y$10$PLACEHOLDER_HASH_EDITOR01', 'editor01@example.com', 1);
VALUES ('editor01', '$2y$10$0kjBMxWq7E4G7P.dc8r5i.cjiPBiup553AsFpDfxUt31gKg9h/udq', 'editor01@example.com', 1);
-- Assign editor01 as EDITOR in project LCBP3C1
INSERT IGNORE INTO user_project_roles (user_id, project_id, role_id)
@@ -159,7 +159,7 @@ WHERE u.username='editor01';
-- Create viewer01 user (password hash placeholder, must change later)
INSERT IGNORE INTO users (username, password_hash, email, is_active)
VALUES ('viewer01', '$2y$10$PLACEHOLDER_HASH_VIEWER01', 'viewer01@example.com', 1);
VALUES ('viewer01', '$2y$10$0kjBMxWq7E4G7P.dc8r5i.cjiPBiup553AsFpDfxUt31gKg9h/udq', 'viewer01@example.com', 1);
-- Assign viewer01 as VIEWER in project LCBP3C2
INSERT IGNORE INTO user_project_roles (user_id, project_id, role_id)