WikiStart: polnenje.sql

File polnenje.sql, 2.3 KB (added by 192070, 3 years ago)
Line 
1insert into pilots (pilot_id, pilot_name, first_name, last_name, birth_date, email, password, member_since, bio)
2 values (1, 'bnikov', 'Bojan', 'Nikov', '2000-09-25', 'nikov.bojan@gmail.com', 'admin', '2022-01-01', null),
3 (2, 'johnFPV', 'John', 'Johnson', '1971-11-27', 'john_fpv@gmail.com', 'johnismyname', '2022-02-01', 'I am John'),
4 (3, 'MrSteele', 'Steele', 'Davis', '1980-05-11', 'mrsteele@yahoo.com', 'drones123', '2022-01-02', ':)');
5
6
7
8insert into pilot_videos(pilot_id, video_id, video_link)
9 values (1, 1, 'https://www.youtube.com/watch?v=uaV_650oheY'),
10 (1, 2, 'https://www.youtube.com/watch?v=tA5Y1Ic0vk0');
11
12
13insert into organizers(organizer_id, organizer_name)
14 values (1, 'FAI'),
15 (2, 'MultiGP'),
16 (3, 'DroneRacingLeague'),
17 (4, 'DroneChampionsLeague');
18
19
20
21insert into drones(drone_id, motors, esc, frame, flight_controller, battery, drone_pilot_id)
22 values (1, 'Tmotor V2 1950KV', 'HobbyWing 60A ESC', 'MCK Frame', 'Furious FPV RacePit FC', 'Lumenier 1250MAH 6S 120C', 1),
23 (2, 'Ethix Mr Steele 2306 1750kv V3', 'FETtec 45A', 'ImpulseRC Mr.Steele Apex', 'FETtec KISS F7', 'Thunder Power 1100mAh 6S 100C', 3);
24
25
26
27insert into countries(country_id, country_name)
28 values (1, 'Macedonia'),
29 (2, 'Serbia'),
30 (3, 'Bulgaria'),
31 (4, 'Germany'),
32 (5, 'Spain'),
33 (6, 'Portugal'),
34 (7, 'South Korea'),
35 (8, 'China'),
36 (9, 'Austria'),
37 (10, 'Switzerland'),
38 (11, 'Belgium'),
39 (12, 'United States'),
40 (13, 'United Arab Emirates'),
41 (14, 'Poland'),
42 (15, 'Lithuania'),
43 (16, 'Czech Republic'),
44 (17, 'Hungary');
45
46
47insert into cities(city_id, city_name, country_id)
48 values (1, 'Skopje', 1),
49 (2, 'Prilep', 1),
50 (3, 'Bela Crkva', 2),
51 (4, 'Plovdiv', 3),
52 (5, 'Kyustendil', 3),
53 (6, 'Sofia', 3),
54 (7, 'Nordlingen', 4),
55 (8, 'Barcelona', 5),
56 (9, 'Madrid', 5),
57 (10, 'Setubal', 6),
58 (11, 'Daegu', 7),
59 (12, 'Ningbo',8),
60 (13, 'Shenzhen', 8),
61 (14, 'Vienna', 9),
62 (15, 'Zurich', 10),
63 (16, 'Antwerp', 11),
64 (17, 'Birmingham, Alabama', 12),
65 (18, 'Dubai', 13),
66 (19, 'Warsaw', 14),
67 (20, 'Vilnius', 15),
68 (21, 'Prague', 16),
69 (22, 'Budapest', 17);
70
71
72
73
74--decode('',' base64')
75
76
77
78insert into participants(pilot_id, race_id)
79 values (1, 1),
80 (1, 2),
81 (2, 1),
82 (2, 2),
83 (3, 1),
84 (3, 2);