RelationModel: populate.sql

File populate.sql, 4.7 KB (added by 151131, 2 days ago)
Line 
1INSERT INTO AppUser (ssn, email, password, firstName, lastName) VALUES
2('1234567890123', 'john.doe@email.com', 'pass123', 'John', 'Doe'),
3('2345678901234', 'jane.smith@email.com', 'pass456', 'Jane', 'Smith'),
4('3456789012345', 'bob.wilson@email.com', 'pass789', 'Bob', 'Wilson'),
5('4567890123456', 'alice.jones@email.com', 'pass321', 'Alice', 'Jones'),
6('5678901234567', 'mike.brown@email.com', 'pass654', 'Mike', 'Brown'),
7('6789012345678', 'sara.davis@email.com', 'pass987', 'Sara', 'Davis'),
8('7890123456789', 'tom.miller@email.com', 'passabc', 'Tom', 'Miller'),
9('8901234567890', 'emma.white@email.com', 'passdef', 'Emma', 'White'),
10('9012345678901', 'james.black@email.com', 'passghi', 'James', 'Black'),
11('0123456789012', 'lisa.green@email.com', 'passjkl', 'Lisa', 'Green');
12
13INSERT INTO Patient (userId, patientId) VALUES
14('1234567890123', 'P001'),
15('2345678901234', 'P002'),
16('3456789012345', 'P003'),
17('4567890123456', 'P004'),
18('5678901234567', 'P005'),
19('6789012345678', 'P006'),
20('7890123456789', 'P007'),
21('8901234567890', 'P008'),
22('9012345678901', 'P009'),
23('0123456789012', 'P010');
24
25INSERT INTO Doctor (userId, workingHours, licenseNumber, hospitalId) VALUES
26('1234567890123', '9:00-17:00', 'L001', 'H001'),
27('2345678901234', '8:00-16:00', 'L002', 'H001'),
28('3456789012345', '10:00-18:00', 'L003', 'H002'),
29('4567890123456', '9:00-17:00', 'L004', 'H002'),
30('5678901234567', '8:00-16:00', 'L005', 'H003'),
31('6789012345678', '10:00-18:00', 'L006', 'H003'),
32('7890123456789', '9:00-17:00', 'L007', 'H004'),
33('8901234567890', '8:00-16:00', 'L008', 'H004'),
34('9012345678901', '10:00-18:00', 'L009', 'H005'),
35('0123456789012', '9:00-17:00', 'L010', 'H005');
36
37INSERT INTO Specialist (userId, licenseNumber, hospitalId) VALUES
38('1234567890123', 'S001', 'H001'),
39('2345678901234', 'S002', 'H001'),
40('3456789012345', 'S003', 'H002'),
41('4567890123456', 'S004', 'H002'),
42('5678901234567', 'S005', 'H003'),
43('6789012345678', 'S006', 'H003'),
44('7890123456789', 'S007', 'H004'),
45('8901234567890', 'S008', 'H004'),
46('9012345678901', 'S009', 'H005'),
47('0123456789012', 'S010', 'H005');
48
49INSERT INTO Comment (commentId, createdBy, comment) VALUES
50(1, '1234567890123', 'Great service!'),
51(2, '2345678901234', 'Very professional'),
52(3, '3456789012345', 'Excellent care'),
53(4, '4567890123456', 'Quick response'),
54(5, '5678901234567', 'Helpful staff'),
55(6, '6789012345678', 'Good experience'),
56(7, '7890123456789', 'Highly recommended'),
57(8, '8901234567890', 'Professional team'),
58(9, '9012345678901', 'Outstanding service'),
59(10, '0123456789012', 'Very satisfied');
60
61INSERT INTO Report (reportId, description, isFinished) VALUES
62(1, 'Annual checkup report', true),
63(2, 'Blood test results', true),
64(3, 'X-ray analysis', false),
65(4, 'Medical examination', true),
66(5, 'Dental checkup', true),
67(6, 'Eye examination', false),
68(7, 'Physical therapy report', true),
69(8, 'Psychiatric evaluation', true),
70(9, 'Dermatology consultation', false),
71(10, 'Cardiology report', true);
72
73INSERT INTO MedicineRecepit (medicineRecepitId, reportId, medicineName, quantity) VALUES
74(1, 3, 'Aspirin', 30),
75(2, 4, 'Ibuprofen', 20),
76(3, 5, 'Amoxicillin', 15),
77(4, 1, 'Paracetamol', 25),
78(5, 2, 'Omeprazole', 10),
79(6, 3, 'Metformin', 60),
80(7, 6, 'Lisinopril', 30),
81(8, 7, 'Simvastatin', 28),
82(9, 5, 'Amlodipine', 30),
83(10, 3, 'Sertraline', 30);
84
85INSERT INTO IsApprovedMedicineRecepit (approvalId, receiptId, approvedBy, IsApproved) VALUES
86(1, 1, '1234567890123', true),
87(2, 2, '2345678901234', true),
88(3, 3, '3456789012345', false),
89(4, 4, '4567890123456', true),
90(5, 5, '5678901234567', true),
91(6, 6, '6789012345678', true),
92(7, 7, '7890123456789', false),
93(8, 8, '8901234567890', true),
94(9, 9, '9012345678901', true),
95(10, 10, '0123456789012', true);
96
97INSERT INTO Examination (examinationId, patientId, doctorId, specialistId) VALUES
98(1, '1234567890123', '2345678901234', '3456789012345'),
99(2, '2345678901234', '3456789012345', '4567890123456'),
100(3, '3456789012345', '4567890123456', '5678901234567'),
101(4, '4567890123456', '5678901234567', '6789012345678'),
102(5, '5678901234567', '6789012345678', '7890123456789'),
103(6, '6789012345678', '7890123456789', '8901234567890'),
104(7, '7890123456789', '8901234567890', '9012345678901'),
105(8, '8901234567890', '9012345678901', '0123456789012'),
106(9, '9012345678901', '0123456789012', '1234567890123'),
107(10, '0123456789012', '1234567890123', '2345678901234');
108
109INSERT INTO Review (reviewId, patientId, doctorId, rank) VALUES
110(1, '1234567890123', '2345678901234', 5),
111(2, '2345678901234', '3456789012345', 4),
112(3, '3456789012345', '4567890123456', 5),
113(4, '4567890123456', '5678901234567', 3),
114(5, '5678901234567', '6789012345678', 4),
115(6, '6789012345678', '7890123456789', 5),
116(7, '7890123456789', '8901234567890', 4),
117(8, '8901234567890', '9012345678901', 5),
118(9, '9012345678901', '0123456789012', 4),
119(10, '0123456789012', '1234567890123', 5);