TTime/backend/internal/database/sample_data/0010_sample_data.sql

53 lines
2.1 KiB
MySQL
Raw Normal View History

2024-03-18 22:39:02 +01:00
INSERT OR IGNORE INTO users(username, password)
VALUES ("admin", "123");
2024-03-18 22:39:02 +01:00
INSERT OR IGNORE INTO users(username, password)
VALUES ("user", "123");
INSERT OR IGNORE INTO users(username, password)
VALUES ("user2", "123");
INSERT OR IGNORE INTO site_admin VALUES (1);
2024-03-18 22:39:02 +01:00
INSERT OR IGNORE INTO projects(name,description,owner_user_id)
2024-03-18 23:08:38 +01:00
VALUES ("projecttest","test project", 1);
2024-03-18 22:39:02 +01:00
INSERT OR IGNORE INTO projects(name,description,owner_user_id)
2024-03-18 23:08:38 +01:00
VALUES ("projecttest2","test project2", 1);
2024-03-18 22:39:02 +01:00
INSERT OR IGNORE INTO projects(name,description,owner_user_id)
2024-03-18 23:08:38 +01:00
VALUES ("projecttest3","test project3", 1);
2024-03-18 22:39:02 +01:00
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
VALUES (1,1,"project_manager");
2024-03-18 23:08:38 +01:00
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
2024-03-18 22:39:02 +01:00
VALUES (2,1,"member");
2024-03-18 23:08:38 +01:00
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
2024-03-18 22:39:02 +01:00
VALUES (3,1,"member");
2024-03-18 23:08:38 +01:00
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
2024-03-18 22:39:02 +01:00
VALUES (3,2,"member");
2024-03-18 23:08:38 +01:00
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
2024-03-18 22:39:02 +01:00
VALUES (3,3,"member");
2024-03-18 23:08:38 +01:00
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
2024-03-18 22:39:02 +01:00
VALUES (2,1,"project_manager");
2024-03-20 21:53:08 +01:00
INSERT OR IGNORE INTO weekly_reports (user_id, project_id, week, development_time, meeting_time, admin_time, own_work_time, study_time, testing_time, signed_by)
VALUES (2, 1, 12, 20, 10, 5, 30, 15, 10, NULL);
2024-03-20 21:53:08 +01:00
INSERT OR IGNORE INTO weekly_reports (user_id, project_id, week, development_time, meeting_time, admin_time, own_work_time, study_time, testing_time, signed_by)
VALUES (3, 1, 12, 20, 10, 5, 30, 15, 10, NULL);
2024-03-20 21:53:08 +01:00
INSERT OR IGNORE INTO weekly_reports (user_id, project_id, week, development_time, meeting_time, admin_time, own_work_time, study_time, testing_time, signed_by)
VALUES (3, 1, 14, 20, 10, 5, 30, 15, 10, NULL);
2024-03-20 21:53:08 +01:00
INSERT OR IGNORE INTO weekly_reports (user_id, project_id, week, development_time, meeting_time, admin_time, own_work_time, study_time, testing_time, signed_by)
VALUES (3, 2, 12, 20, 10, 5, 30, 15, 10, NULL);
2024-03-20 21:53:08 +01:00
INSERT OR IGNORE INTO weekly_reports (user_id, project_id, week, development_time, meeting_time, admin_time, own_work_time, study_time, testing_time, signed_by)
VALUES (3, 3, 12, 20, 10, 5, 30, 15, 10, NULL);