diff --git a/init_users.sql b/init_users.sql deleted file mode 100644 index 85e5f76..0000000 --- a/init_users.sql +++ /dev/null @@ -1,23 +0,0 @@ --- ============================================= --- Initial User Setup for [dbo].[BIPUsers] Table --- ============================================= --- This script creates initial users for the ERP Automation Tool --- --- IMPORTANT: Change these passwords before deploying to production! --- ============================================= - --- Create admin user (can see all data) -INSERT INTO [dbo].[BIPUsers] (UserName, Password, UserType) VALUES ('admin', 'admin123', 'Admin'); - --- Create regular users (replace with actual usernames) --- These users will only see records where ManagerName matches their username -INSERT INTO [dbo].[BIPUsers] (UserName, Password, UserType) VALUES ('user1', 'password1', 'User'); -INSERT INTO [dbo].[BIPUsers] (UserName, Password, UserType) VALUES ('user2', 'password2', 'User'); - --- Example: Create users for specific managers --- Replace 'ManagerName1', 'ManagerName2' with actual manager names from your data --- INSERT INTO [dbo].[BIPUsers] (UserName, Password, UserType) VALUES ('张三', 'password123', 'User'); --- INSERT INTO [dbo].[BIPUsers] (UserName, Password, UserType) VALUES ('李四', 'password456', 'User'); - --- Verify created users -SELECT * FROM [dbo].[BIPUsers];