| 1 | INSERT INTO Dorm_User (u_id, phone_number, first_name, last_name, email, pass)
|
|---|
| 2 | VALUES
|
|---|
| 3 | (1, '1234567890', 'John', 'Doe', 'john.doe@example.com', 'password123'),
|
|---|
| 4 | (2, '0987654321', 'Jane', 'Smith', 'jane.smith@example.com', 'password456'),
|
|---|
| 5 | (3, '1122334455', 'Alice', 'Johnson', 'alice.johnson@example.com', 'password789'),
|
|---|
| 6 | (4, '2233445566', 'Bob', 'Brown', 'bob.brown@example.com', 'password000');
|
|---|
| 7 |
|
|---|
| 8 | INSERT INTO Block (block_id, num_available_rooms)
|
|---|
| 9 | VALUES
|
|---|
| 10 | ('A', 50),
|
|---|
| 11 | ('B', 40),
|
|---|
| 12 | ('C', 30),
|
|---|
| 13 | ('D', 20);
|
|---|
| 14 |
|
|---|
| 15 | INSERT INTO Room (room_number, block_id, is_available, capacity)
|
|---|
| 16 | VALUES
|
|---|
| 17 | (101, 'A', true, 2),
|
|---|
| 18 | (102, 'A', true, 2),
|
|---|
| 19 | (103, 'B', true, 3),
|
|---|
| 20 | (104, 'B', false, 3),
|
|---|
| 21 | (201, 'C', true, 4),
|
|---|
| 22 | (202, 'D', true, 1);
|
|---|
| 23 |
|
|---|
| 24 | INSERT INTO Student (u_id, faculty_name, year_of_studies, is_exempt)
|
|---|
| 25 | VALUES
|
|---|
| 26 | (1, 'Computer Science', 2, false),
|
|---|
| 27 | (2, 'Engineering', 3, false),
|
|---|
| 28 | (3, 'Mathematics', 1, false);
|
|---|
| 29 |
|
|---|
| 30 | INSERT INTO Employee (u_id)
|
|---|
| 31 | VALUES
|
|---|
| 32 | (4);
|
|---|
| 33 |
|
|---|
| 34 | INSERT INTO Payment (p_id, amount, payment_date, student_id, payment_month)
|
|---|
| 35 | VALUES
|
|---|
| 36 | (1, 500, '2024-01-15', 1, 'January'),
|
|---|
| 37 | (2, 600, '2024-02-10', 2, 'February'),
|
|---|
| 38 | (3, 450, '2024-03-05', 3, 'March');
|
|---|
| 39 |
|
|---|
| 40 | INSERT INTO Dorm_Document (d_id, d_comment, d_status, upload_date, file_path, emp_id, student_id)
|
|---|
| 41 | VALUES
|
|---|
| 42 | (1, 'Room allocation document', 'Approved', '2024-01-10', '/path/to/doc1.pdf', 4, 1),
|
|---|
| 43 | (2, 'Payment confirmation', 'Pending', '2024-02-15', '/path/to/doc2.pdf', 4, 2);
|
|---|
| 44 |
|
|---|
| 45 | INSERT INTO RoomRequest (status, roomate_email, room_number, block_id, employee_id, student_id)
|
|---|
| 46 | VALUES
|
|---|
| 47 | ('Pending', 'jane.smith@example.com', 101, 'A', 4, 1),
|
|---|
| 48 | ('Pending', 'test.test@example.com', 101, 'A', 4, 2),
|
|---|
| 49 | ('Approved', NULL, 103, 'B', 4, 2);
|
|---|
| 50 |
|
|---|
| 51 | INSERT INTO StudentTookRoom (start_date, end_date, student_id, room_num, block_id)
|
|---|
| 52 | VALUES
|
|---|
| 53 | ('2024-01-01', '2024-06-01', 1, 101, 'A'),
|
|---|
| 54 | ('2024-01-01', NULL, 2, 101, 'A');
|
|---|
| 55 |
|
|---|