2023-12-23 21:27:52 +01:00
INSERT INTO " role " ( name ) VALUES ( ' admin ' ) ;
INSERT INTO " role " ( name ) VALUES ( ' cox ' ) ;
INSERT INTO " role " ( name ) VALUES ( ' scheckbuch ' ) ;
INSERT INTO " role " ( name ) VALUES ( ' tech ' ) ;
2024-01-10 14:08:15 +01:00
INSERT INTO " role " ( name ) VALUES ( ' Donau Linz ' ) ;
2024-05-28 10:46:21 +02:00
INSERT INTO " role " ( name ) VALUES ( ' manage_events ' ) ;
2024-03-03 18:08:15 +01:00
INSERT INTO " role " ( name ) VALUES ( ' Rennrudern ' ) ;
2024-03-04 14:04:13 +01:00
INSERT INTO " role " ( name ) VALUES ( ' paid ' ) ;
2024-03-04 16:37:53 +01:00
INSERT INTO " role " ( name ) VALUES ( ' Vorstand ' ) ;
2024-04-14 18:27:21 +02:00
INSERT INTO " role " ( name ) VALUES ( ' Bootsführer ' ) ;
2024-05-22 08:30:38 +02:00
INSERT INTO " role " ( name ) VALUES ( ' schnupperant ' ) ;
2024-08-19 10:34:37 +02:00
INSERT INTO " role " ( name ) VALUES ( ' kassier ' ) ;
2024-08-21 16:14:54 +02:00
INSERT INTO " role " ( name ) VALUES ( ' no-einschreibgebuehr ' ) ;
2023-12-23 21:27:52 +01:00
INSERT INTO " user " ( name , pw ) VALUES ( ' admin ' , ' $argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$4P4NCw4Ukhv80/eQYTsarHhnw61JuL1KMx/L9dm82YM ' ) ;
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 1 , 1 ) ;
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 1 , 2 ) ;
2024-01-10 14:08:15 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 1 , 5 ) ;
2024-01-22 19:27:22 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 1 , 6 ) ;
2023-12-23 21:27:52 +01:00
INSERT INTO " user " ( name , pw ) VALUES ( ' rower ' , ' $argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$jWKzDmI0jqT2dqINFt6/1NjVF4Dx15n07PL1ZMBmFsY ' ) ;
2024-01-10 14:08:15 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 2 , 5 ) ;
2023-12-23 21:27:52 +01:00
INSERT INTO " user " ( name , pw ) VALUES ( ' guest ' , ' $argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$GF6gizbI79Bh0zA9its8S0gram956v+YIV8w8VpwJnQ ' ) ;
2024-01-10 14:08:15 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 3 , 5 ) ;
2023-12-23 21:27:52 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 3 , 3 ) ;
INSERT INTO " user " ( name , pw ) VALUES ( ' cox ' , ' $argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$lnWzHx3DdqS9GQyWYel82kIotZuK2wk9EyfhPFtjNzs ' ) ;
2024-01-10 14:08:15 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 4 , 5 ) ;
2023-12-23 21:27:52 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 4 , 2 ) ;
2024-03-04 14:04:13 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 4 , 8 ) ;
2023-04-10 14:25:31 +02:00
INSERT INTO " user " ( name ) VALUES ( ' new ' ) ;
2024-01-10 14:08:15 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 5 , 5 ) ;
2023-12-23 21:27:52 +01:00
INSERT INTO " user " ( name , pw ) VALUES ( ' cox2 ' , ' $argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$lnWzHx3DdqS9GQyWYel82kIotZuK2wk9EyfhPFtjNzs ' ) ;
2024-01-10 14:08:15 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 6 , 5 ) ;
2023-12-23 21:27:52 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 6 , 2 ) ;
INSERT INTO " user " ( name , pw ) VALUES ( ' rower2 ' , ' $argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$jWKzDmI0jqT2dqINFt6/1NjVF4Dx15n07PL1ZMBmFsY ' ) ;
2024-01-10 14:08:15 +01:00
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 7 , 5 ) ;
2024-03-03 18:08:15 +01:00
INSERT INTO " user " ( name , pw ) VALUES ( ' teen ' , ' $argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$jWKzDmI0jqT2dqINFt6/1NjVF4Dx15n07PL1ZMBmFsY ' ) ;
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 8 , 5 ) ;
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 8 , 7 ) ;
2024-03-04 16:37:53 +01:00
INSERT INTO " user " ( name , pw ) VALUES ( ' Vorstandsmitglied ' , ' $argon2id$v=19$m=19456,t=2,p=1$dS/X5/sPEKTj4Rzs/CuvzQ$jWKzDmI0jqT2dqINFt6/1NjVF4Dx15n07PL1ZMBmFsY ' ) ;
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 9 , 5 ) ;
INSERT INTO " user_role " ( user_id , role_id ) VALUES ( 9 , 9 ) ;
2023-04-26 12:21:30 +02:00
2023-04-28 19:08:17 +02:00
INSERT INTO " trip_details " ( planned_starting_time , max_people , day , notes ) VALUES ( ' 10:00 ' , 2 , ' 1970-01-01 ' , ' trip_details for a planned event ' ) ;
2023-04-28 17:59:12 +02:00
INSERT INTO " planned_event " ( name , planned_amount_cox , trip_details_id ) VALUES ( ' test-planned-event ' , 2 , 1 ) ;
2023-04-26 16:54:53 +02:00
2023-04-28 17:59:12 +02:00
INSERT INTO " trip_details " ( planned_starting_time , max_people , day , notes ) VALUES ( ' 11:00 ' , 1 , ' 1970-01-02 ' , ' trip_details for trip from cox ' ) ;
2023-04-26 16:54:53 +02:00
INSERT INTO " trip " ( cox_id , trip_details_id ) VALUES ( 4 , 2 ) ;
2023-05-03 16:38:15 +02:00
INSERT INTO " trip_type " ( name , desc , question , icon ) VALUES ( ' Regatta ' , ' Regatta! ' , ' Kein normales Event. Das ist eine Regatta! Willst du wirklich teilnehmen? ' , ' 🏅 ' ) ;
INSERT INTO " trip_type " ( name , desc , question , icon ) VALUES ( ' Lange Ausfahrt ' , ' Lange Ausfahrt! ' , ' Das ist eine lange Ausfahrt! Willst du wirklich teilnehmen? ' , ' 💪 ' ) ;
INSERT INTO " trip_type " ( name , desc , question , icon ) VALUES ( ' Wanderfahrt ' , ' Wanderfahrt! ' , ' Kein normales Event. Das ist eine Wanderfahrt! Bitte überprüfe ob du alle Anforderungen erfüllst. Willst du wirklich teilnehmen? ' , ' ⛱ ' ) ;
2023-07-22 13:10:13 +02:00
INSERT INTO " location " ( name ) VALUES ( ' Linz ' ) ;
INSERT INTO " location " ( name ) VALUES ( ' Ottensheim ' ) ;
INSERT INTO " boat " ( name , amount_seats , location_id ) VALUES ( ' Haichenbach ' , 1 , 1 ) ;
INSERT INTO " boat " ( name , amount_seats , location_id , owner ) VALUES ( ' private_boat_from_rower ' , 1 , 1 , 2 ) ;
INSERT INTO " boat " ( name , amount_seats , location_id ) VALUES ( ' Joe ' , 2 , 1 ) ;
INSERT INTO " boat " ( name , amount_seats , location_id ) VALUES ( ' Kaputtes Boot :-( ' , 7 , 1 ) ;
2023-07-30 20:29:48 +02:00
INSERT INTO " boat " ( name , amount_seats , location_id ) VALUES ( ' Sehr kaputtes Boot :-(( ' , 7 , 1 ) ;
2023-08-05 13:21:35 +02:00
INSERT INTO " boat " ( name , amount_seats , location_id ) VALUES ( ' Ottensheim Boot ' , 7 , 2 ) ;
2023-10-01 13:48:21 +02:00
INSERT INTO " boat " ( name , amount_seats , location_id , owner ) VALUES ( ' second_private_boat_from_rower ' , 1 , 1 , 2 ) ;
2024-07-13 20:58:13 +02:00
INSERT INTO " boat " ( name , amount_seats , location_id , default_shipmaster_only_steering ) VALUES ( ' cox_only_steering_boat ' , 3 , 1 , true ) ;
2023-07-22 13:10:13 +02:00
INSERT INTO " logbook_type " ( name ) VALUES ( ' Wanderfahrt ' ) ;
INSERT INTO " logbook_type " ( name ) VALUES ( ' Regatta ' ) ;
2023-11-19 22:19:28 +01:00
INSERT INTO " logbook " ( boat_id , shipmaster , steering_person , shipmaster_only_steering , departure ) VALUES ( 2 , 2 , 2 , false , strftime ( ' %Y ' , ' now ' ) | | ' -12-24 10:00 ' ) ;
INSERT INTO " logbook " ( boat_id , shipmaster , steering_person , shipmaster_only_steering , departure , arrival , destination , distance_in_km ) VALUES ( 1 , 4 , 4 , false , strftime ( ' %Y ' , ' now ' ) | | ' -12-24 10:00 ' , strftime ( ' %Y ' , ' now ' ) | | ' -12-24 15:00 ' , ' Ottensheim ' , 25 ) ;
INSERT INTO " logbook " ( boat_id , shipmaster , steering_person , shipmaster_only_steering , departure , arrival , destination , distance_in_km ) VALUES ( 3 , 4 , 4 , false , strftime ( ' %Y ' , ' now ' ) | | ' -12-24 10:00 ' , strftime ( ' %Y ' , ' now ' ) | | ' -12-24 11:30 ' , ' Ottensheim + Regattastrecke ' , 29 ) ;
2023-07-22 13:10:13 +02:00
INSERT INTO " rower " ( logbook_id , rower_id ) VALUES ( 3 , 3 ) ;
INSERT INTO " boat_damage " ( boat_id , desc , user_id_created , created_at ) VALUES ( 4 , ' Dolle bei Position 2 fehlt ' , 5 , ' 2142-12-24 15:02 ' ) ;
2023-07-30 20:29:48 +02:00
INSERT INTO " boat_damage " ( boat_id , desc , user_id_created , created_at , lock_boat ) VALUES ( 5 , ' TOHT ' , 5 , ' 2142-12-24 15:02 ' , 1 ) ;
2024-03-20 16:19:12 +01:00
INSERT INTO " notification " ( user_id , message , category ) VALUES ( 1 , ' This is a test notification ' , ' test-cat ' ) ;
2024-06-10 19:43:59 +02:00
INSERT INTO " trailer " ( name ) VALUES ( ' Großer Hänger ' ) ;
INSERT INTO " trailer " ( name ) VALUES ( ' Kleiner Hänger ' ) ;
2024-08-18 20:43:45 +02:00
insert into distance ( destination , distance_in_km ) values ( ' Ottensheim ' , 25 ) ;