RelationalDesign: dodavanje3.sql

File dodavanje3.sql, 8.1 KB (added by 184006, 9 months ago)
Line 
1
2INSERT INTO project.cities
3("name")
4VALUES('Skopje'),
5('Ohrid'),
6('Skopje');
7
8INSERT INTO project.vet_centers
9("name", description, adress, phonenumber, latitude, longitude, workinghours, citiesid)
10VALUES( 'Vet Svet', 'Тhe best for your pets', 'Nikola Parapunov 27', '+389(0)23161019', 41.9966401, 21.41712, 'Monday-Friday 10-19, Saturday 10-15', 1),
11( 'Veterinarian Ambulance - Dr.Tonit', 'Your pets are safe with us', 'Bulevar Makedonski Prosvetiteli', '070575881', 41.1196292, 20.7996689, 'Monday-Thursday 08-20, Friday-Saturday 08-07', 2),
12( 'Vet In', 'We exist for you and your pets', 'Blvd. Partizanski Odredi 62', '077 698 250', 42.0030601, 21.395752, 'Monday-Friday 9-12, 14-19', 3);
13
14INSERT INTO project.jobs
15(description, predictedsalery, vetcentersid)
16VALUES('doctor', '1500 EUR', 1),
17('secretary', '800 EUR', 1),
18('doctor', '1400 EUR', 3),
19('developer', '1800 EUR', 2);
20
21INSERT INTO project.roles
22("type")
23VALUES('admin'),
24('standard'),
25('manager'),
26('employee');
27
28INSERT INTO project.users
29("name", lastname, email, password, "number", role_id, jobs_id)
30VALUES('Ana', 'Kirova', 'ana.kirova99@gmail.com', 'Ana@123', '071220234', 2, 2),
31('Riste', 'Rizov', 'riste.rizov01@hotmail.com', 'Riste$11', '075450290', 2, 3),
32('Keti', 'Atanasova', 'keti.atanasovaaa@gmail.com', 'Keti12@', '078760330', 2, 1),
33('Elena', 'Rizova', 'elena.rizova05@gmail.com', 'Rizova12!', '071762110', 3, null),
34('Marina', 'Abrasheva', 'marina.abrashevaa@hotmail.com', 'Marina!1', '072324112', 4, null),
35('Angela', 'Pavlova', 'angela.pavlova07@hotmail.com', 'Angela@12', '078765240', 1, null),
36('Marija', 'Kortova', 'marija.kortova199@gmail.com', 'Marija123&', '072231129', 2, 4),
37('Silvana', 'Dodeva', 'silvana.dodeva9@gmail.com', 'Silvana123*', '078231129', 3, null);
38
39INSERT INTO project.blog_post_for_consultations
40(date_askes, title, description, users_id)
41VALUES('2023-12-11', 'Urinary food', 'Can you recommend a urinary food because my kitten has urinary problems.', 1),
42('2023-06-12', 'Frequent vomiting', 'Мy dog is vomiting a lot, despite the therapy from the vet, please advise.', 2),
43('2023-04-10', 'Sterilization', 'When is the best time to sterilize a dog, before or after a period.', 3),
44('2023-05-09', 'Panleukopenia', 'Мy kitten got sick, he does not want to eat or drink water. The vet suspects panleukopenia despite the negative test. I am asking for your experience.', 7);
45
46INSERT INTO project.blog_post_answers
47(parent_id, reply, blogpostconsid, usersid)
48VALUES(1, 'Royal Canin', 1, 2),
49(2, 'Did you change his food?', 2, 1),
50(3, 'before a period', 3, 7),
51(4, 'seek advice from another vet!', 4, 2);
52
53INSERT INTO project.pet_cares
54(title, description, dateending, usersid, vetcentersid)
55VALUES('Аccommodation for a pet', 'I am looking for accommodation for my pet during the summer holidays. From July 12 to July 19', '2023-07-19', 1, 1),
56('Аccommodation for a pet', 'I will be moving to another apartment so I am looking for 2 weeks accommodation for my kitten', '2023-08-10', 2, 2),
57('Veterinary care', 'Мy dog is sick so he needs constant care. I need accommodation for him from 5 days', '2023-06-18', 3, 3);
58
59INSERT INTO project.type_of_pets
60(description, "name")
61VALUES('cat', 'Lana'),
62('dog', 'Roki'),
63('dog', 'Fifi'),
64('cat', 'Mimi'),
65('dog', 'Dzina');
66
67INSERT INTO project.pets
68(color, description, dateofbirthday, usersid, typeofpetsid)
69VALUES('white', 'Scottish Fold silver chincilla', '2022-05-20', 1, 1),
70('grey', 'Persian long hair', '2021-06-16', 2, 4),
71('brown', 'Large brown eyes, hanging ears,', '2020-12-30', 3, 2),
72('black', 'Toy poodle', '2018-04-24', 7, 3),
73('white', 'Toy poodle', '2019-10-20', 1, 5);
74
75INSERT INTO project.pet_galery
76(picture, petsid)
77VALUES('https://thumbs.dreamstime.com/z/scottish-fold-cat-special-friendly-cat-breed-famous-their-folded-little-ears-their-extremely-affectionate-139562562.jpg', 1),
78('https://cyprusanimals.files.wordpress.com/2011/08/persian.jpg',2),
79('https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTHiFuem-8UxpTNsp3uo1tFYNScsL7CBOPO6hIn5-2XIwzVVI7N',3),
80('https://www.pupvine.com/wp-content/uploads/2021/12/Black-Toy-Poodle-An-Honest-Guide-To-The-Tiny-Teddy-Bear-Dog.jpg',4),
81('https://media.istockphoto.com/id/176894002/photo/close-up-of-white-toy-poodle-sitting.jpg?s=612x612&w=0&k=20&c=o12N6niEkm0AVip1KAk8_b66SFy92nwjhnq0hcg0CDM=',5);
82
83INSERT INTO project.reports
84(description, usersid, petsid)
85VALUES('Аfter receiving therapy for vomiting and diarrhea, the kitten is better, we will monitor his condition', 1, 1),
86('Тhe dog passed the castration well', 3, 3),
87('the kitten had urinary problems, next month he should eat only urine food', 2, 2);
88
89INSERT INTO project."diagnostics"
90(description, usersid)
91VALUES('Diarrhea and vomiting', 1),
92('Castration', 3),
93('Urinary problems', 2),
94('Urinary problems', 7);
95
96INSERT INTO project.manufacturers
97(name,description, city, state)
98VALUES('Sunvet PharmaPrivate','We are themanufacturer of Pharmaceutical Injection', 'Belgrade', 'Serbian'),
99('Macwell Pharmaceuticals Pvt. Ltd','we believe to work according to international quality standards and process reliable','Frankfurt', 'Germany'), --FORTAN,
100('SAM S FIELD','Top quality', 'Nuremberg', 'Germany'),
101('MMG Healthcare','We are offering Veterinary Injections in both wet and dry formulations. ', 'Nuremberg', 'Germany');
102
103
104
105INSERT INTO project.medecines
106(name,description, diagnosticsid, manufacturersid)
107VALUES('Biomix','Vitamin concentrate for cats with a high content of essential amino acids, vitamins, minerals, trace elements, as ideal as a supplement when feeding cats with raw food.', 1, 1),
108('Fortan','For quality, shiny and beautiful fur',3,2),
109('Sam ''s field','Functional semi-moist soft snacks for dogs with a reduced percentage of fat, to stimulate the digestive system and to improve skin and fur',1,3);
110
111INSERT INTO project.pet_status
112("type", node)
113VALUES('received', 'admitted for examination'),
114('weiting','waiting for his turn'),
115('weiting','waiting for surgery'),
116('received','admitted to surgery'),
117('recovers','');
118
119INSERT INTO project.therapy
120(description, appoitmentdate, diagnosticsid, pet_statusid)
121VALUES('antibiotic', '2023-12-12', 3, 1),
122('anesthesiac', '2022-10-09', 2, 3),
123('vitamins', '2023-07-06', 1, 5),
124('antibiotic', '2023-10-12', 3, 1);
125
126
127INSERT INTO project.breeds
128("name")
129VALUES('scottishfold'),
130('beagle'),
131('poodle'),
132('persian'),
133('poodle');
134
135INSERT INTO project.products
136("name", description, price, isactive, dateadded, category)
137VALUES('CAT ROYALE','High quality premium clamping cat litter ', '7 euro', true, '2022-10-09', 'Hygiene and cosmetics'),
138('Superior Care','Intended for white breed dogs to support full vision function', '3.50 euro', true, '2022-10-08', 'Dietary supplements'),
139('Lifestyle','Intended for adult cats over 1 year of age with a sensitive digestive system', '4.40 euro', true, '2022-10-09', 'Dietary supplements'),
140('Veterinary necklacke', 'for protection', '2 euro', 'false', '2022-10-09', 'Hygiene and cosmetics');
141
142INSERT INTO project.orders
143(quantity)
144VALUES(3),
145(10),
146(5);
147
148INSERT INTO project.pets_visit_vet_centers
149(id_pets, id_vet_centers)
150VALUES(1, 1),
151(2,2),
152(3,3),
153(4,1);
154
155
156INSERT INTO project.product_are_made_orders
157(id_products, id_orders)
158VALUES(1, 1),
159(2,2),
160(3,3);
161INSERT INTO project.products_available_type_of_pets
162(id_products, id_type_of_pets)
163VALUES(1, 1),
164(2,5),
165(3,1);
166
167INSERT INTO project.products_there_are_for_pets
168(id_products, id_pets)
169VALUES(1, 1),
170(2, 5),
171(3, 1);
172
173
174INSERT INTO project.therapy_takes_pets
175(id_therapy, id_pets)
176VALUES(1, 3),
177(2, 2),
178(1, 1),
179(3, 2);
180
181
182
183 INSERT INTO project.users
184("name", lastname, email, "password", "number", role_id, jobs_id)
185VALUES('Nika', 'Nikova', 'nika12@yahoo.com', 'Nika1!', '334455', 3, null);
186
187
188INSERT INTO project.users
189("name", lastname, email, "password", "number", role_id, jobs_id)
190VALUES('elenaaadmin', 'elenaadminn', 'elenaadminn12@yahoo.com', 'Elena11!', '445546666', 1, null);
191
192INSERT INTO project.users
193("name", lastname, email, "password", "number", role_id, jobs_id)
194VALUES('test12', 'test222', 'ttel@yahoo.com', '', '445756666', 2, null);
195