RelationalDesign: polnenje.sql

File polnenje.sql, 7.7 KB (added by 201063, 22 months ago)
Line 
1insert into user_table (date_created_user, name_user, email_user, password_user, telephone_user) values
2(now(), 'Ekaterina Sazdova', 'sazdovaekaterina@gmail.com', 'very_str0ng_p@ssword', null),
3(now(), 'Filip Corbeski', 'corbeski.filip@gmail.com', '123466', '223 305'),
4(now(), 'Mila Trajceva', 'mila.trajceva@gmail.com', 'passWord1', null),
5(now(), 'Trajko Petrov', 'trajko_petrovski98@yahoo.com', 'earyeraer', '077-894-928'),
6(now(), 'Maja Hristovska', 'hristovskam@gmail.com', '453v3v', '+38977123456'),
7(now(), 'Renata Todorovska', 'renata.todorovska@students.finki.ukim.mk', 'fgh123', '070/819-193'),
8(now(),'Mihaela Sterjoska', 'mihela.sterjoska@gmail.com', 'MihSter', '075365276'),
9(now(),'Filip Stojchevski', 'filip.stojchevski@gmail.com', 'FilStoj', '075365009'),
10(now(),'Sara Trajkovikj', 'sara.trajkovikj@gmail.com', 'SarTraj', '070388276'),
11(now(),'Ivana Mishev', 'ivana.mishev@gmail.com', 'IvaMish', '076093657'),
12(now(),'Aleksandar Marijanov', 'aleksandar.marijanov@gmail.com', 'AleMari', '076093657'),
13(now(),'Damjana Kirevska', 'damjana.kirevska@gmail.com', 'DamKir', '076097657'),
14(now(),'Mihail Stefanovski', 'mihail.stefanovski@gmail.com', 'MihStef', '075398676'),
15(now(),'Kristina Ivanova', 'kristina.ivanova@gmail.com', 'KriIva', '076097655'),
16(now(),'Marin Kamel', 'marin.kamel@gmail.com', 'MarKam', '076097655'),
17(now(),'Nikola Petrovski', 'nikola.petrovski@gmail.com', 'NikPet', '076097655'),
18(now(),'Markijan Malinov', 'markijan.malinkov@gmail.com', 'MarMal', '076767655'),
19(now(),'Frosina Jorukoska', 'frosina.jorukoska@gmail.com', 'FroJor', '076086655'),
20(now(),'Monika Stojmenska', 'monika.stojmenska@gmail.com', 'MonSto', '070695655'),
21(now(),'Nenad Marichik', 'nenad.marichik@gmail.com', 'NenMar', '075097675'),
22(now(),'Luka Serdar', 'luka.serdar@gmail.com', 'LukSer', '071764325');
23
24insert into admin_table (id_user) values
25(1),
26(2),
27(3);
28
29insert into surendee (id_user) values
30(4),
31(5),
32(6);
33
34insert into donor (id_user, is_from_organisation, name_organisation_donor) values
35(7, false, null),
36(8, true, 'Save The Birds Organisation'),
37(9, false, null);
38
39insert into organisation (name_organisation, email_organisation, billing_information) values
40('AnimalHelp', 'animalhelp@contact.org', '200001234567890'),
41('National Shelters Macedonia', 'shelters@contact.org.mk', '300001234567890'),
42('Dog Rescue', 'dog.rescue@contact.org', '400001234567890');
43
44insert into shelter (address_shelter, telephone_shelter, id_organisation, name_shelter, email_shelter) values
45('st. Street n. 5, Skopje, Macedonia', '123-456-789', 2, 'Skopje City Shelter', 'skopje-shelters@contact.org.mk'),
46('st. Street n. 4, Bitola, Macedonia', '223-456-789', 2, 'Bitola City Shelter', 'bitola-shelters@contact.org.mk'),
47('st. Street n. 8, Ohrid, Macedonia', '323-456-789', 2, 'Ohrid City Shelter', 'ohrid-shelters@contact.org.mk'),
48('st. SomeStreet n.9, Skopje, Macedonia', '072-072-072', null, 'Animal Rescue - Independent Shelter Skopje', 'animal-rescue-skopje@contact.org'); )
49
50insert into employee (id_user, position_employee, id_shelter, is_verified, verified_by_admin) values
51(10, 'shelter staff', 1, true, 1),
52(11, 'shelter staff', 1, true, 1),
53(12, 'shelter staff', 2, true, 2),
54(13, 'shelter staff', 2, true, 2),
55(14, 'shelter staff', 3, true, 3),
56(15, 'shelter staff', 4, true, 3);
57
58insert into adopter (id_user, free_time, funds, has_other_pets, has_kids, housing,
59 physical_activity_adopters, will_foster, is_verified, verified_by_employee) values
60(16, null, null, null, null, null, null, null, true, 10),
61(17, 2, 0, true, false, 1, 2, true, true, 14),
62(18, 0, 2, false, false, 0, 1, false, true, 15),
63(19, 1, 1, false, true, 1, 0, true, true, 12),
64(20, null, null, null, null, null, null, null, false, null),
65(21, 2, 2, true, true, 1, 2, true, true, 14);
66
67insert into adoption (start_date, end_date_foster, approved, id_adopter) values
68(to_date('2022-12-23', 'YYYY-MM-DD'), null, true, 16),
69(to_date('2022-12-11', 'YYYY-MM-DD'), to_date('2022-05-11', 'YYYY-MM-DD'), true, 17),
70(to_date('2023-10-17', 'YYYY-MM-DD'), null, true, 18),
71(to_date('2023-01-10', 'YYYY-MM-DD'), to_date('2022-04-10', 'YYYY-MM-DD'), true, 19),
72(to_date('2022-10-23', 'YYYY-MM-DD'), null, true, 20),
73(to_date('2022-12-11', 'YYYY-MM-DD'), null, true, 21),
74(to_date('2021-8-17', 'YYYY-MM-DD'), null, true, 18),
75(to_date('2023-6-10', 'YYYY-MM-DD'), null, true, 19),
76(to_date('2022-9-23', 'YYYY-MM-DD'), null, true, 20),
77(to_date('2022-1-14', 'YYYY-MM-DD'), null, true, 20),
78(to_date('2022-9-9', 'YYYY-MM-DD'), null, true, 20),
79(to_date('2022-2-14', 'YYYY-MM-DD'), null, true, 19),
80(to_date('2021-4-17', 'YYYY-MM-DD'), null, true, 19),
81(to_date('2023-8-20', 'YYYY-MM-DD'), null, true, 16);
82
83insert into pet (url_pet_image, age_group, size_pet, breed, name_pet,
84 species, gender, can_be_fostered, id_adoption, id_shelter) values
85(null, 0, 1, null, 'Mittens', 0, 1, true, 1, 4),
86(null, 2, 3, 'German Shepherd', 'Brownie', 1, 0, false, null, 1),
87(null, 1, 2, 'Ragdoll', 'Whiskers', 0, 0, false, 3, null),
88(null, 0, 3, null, null, 1, 1, true, 2, 2),
89(null, 0, 3, null, null, 1, 1, true, 4, 2),
90(null, 1, 0, 'African Gray Parrot', 'Biscuit', 2, 0, false, 1, 4),
91(null, 2, 3, 'Golden Retriver', 'Bert', 1, 0, false, 5, 1),
92(null, 1, 2, 'Persian', 'Fluff', 0, 0, false, 6, null),
93(null, 0, 3, null, 'Roki', 2, 0, false, 7, null),
94(null, 0, 1, null, 'Bella', 1, 1, false, 8, 3),
95(null, 2, 0, 'Chihuahua', 'Majlo', 1, 0, false, 13, 1),
96(null, 0, 1, null, 'Marin', 1, 1, false, 18, 3);
97
98insert into post (date_post, url_thumbanail, id_pet, id_surendee, id_employee) values
99(to_date('2022-10-07', 'YYYY-MM-DD'), null, 1, null, 15),
100(to_date('2020-05-04', 'YYYY-MM-DD'), null, 2, null, 10),
101(to_date('2022-08-23', 'YYYY-MM-DD'), null, 3, 5, null),
102(to_date('2022-07-23', 'YYYY-MM-DD'), null, 4, null, 12),
103(to_date('2022-07-23', 'YYYY-MM-DD'), null, 5, null, 12),
104(to_date('2021-12-29', 'YYYY-MM-DD'), null, 6, null, 15);
105
106insert into category (name_category) values
107('gray'),
108('brown'),
109('black'),
110('friendly'),
111('good with kids'),
112('needs extra care');
113
114insert into food (manufacturer, name_food, type_food) values
115('Purrfect Bistro', 'Senior Cat Food', 1),
116('Kibbles', 'Tasty Dog Food', 0),
117('Cesar', 'High Quality', 0);
118
119insert into therapy (health_problem, start_date, end_date) values
120('leg surgery', null, null),
121('diabetes treatment', null, null),
122('3 month therapy to treat parasite', to_date('2023-01-03', 'YYYY-MM-DD'), to_date('2021-04-03', 'YYYY-MM-DD'));
123
124insert into vet_clinic (telephone_vet_clinic, address_vet_clinic, name_vet_clinic) values
125('1234-567-890', 'st.Street n.6', 'PetCare - Veterinary Clinic'),
126('2345-567-890', 'st.Street n.9', 'Tail Wags'),
127('3456-567-890', 'st.Street n.12', 'The Pet Doctors');
128
129insert into personal_profile (id_pet, friendly_to_kids, friendly_to_pets,
130 attention, physical_activity, grooming_needed) values
131(1, 1, 0, 0, 0, 0),
132(2, 2, 2, 2, 0, 1),
133(3, 2, 1, 1, 1, 2),
134(4, 1, 2, 2, 0, 1),
135(5, 1, 2, 0, 2, 1),
136(6, 0, 0, 2, 1, 0);
137
138insert into donor_donates_to_organisation (id_user, id_organisation) values
139(7, 1),
140(8, 1),
141(8, 2),
142(9, 3);
143
144insert into pet_belongs_to_category (id_pet, id_category) values
145(2, 2),
146(6, 2),
147(2, 5),
148(4, 6);
149
150insert into pet_needs_therapy (id_pet, id_therapy) values
151(4, 3),
152(5, 3),
153(4, 1),
154(2, 2);
155
156insert into pet_preferably_eats_food (id_pet, id_food, quantity_a_day) values
157(2, 3, 500),
158(1, 3, 200),
159(2, 2, 150);
160
161insert into pet_needs_intervention_in_vet_clinic (id_pet,
162 id_vet_clinic, date_of_interventing, description) values
163(4, 2, to_date('2023-02-12', 'YYYY-MM-DD'), 'spay'),
164(5, 2, to_date('2023-02-12', 'YYYY-MM-DD'), 'spay'),
165(4, 3, to_date('2023-01-22', 'YYYY-MM-DD'), 'leg surgery');