You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
4.0 KiB
SQL

-- User
use vujovicig;
insert into user ( nick, mail, password ) values ( 'snowflake', 'snowflake@cocain.ninja', '$2y$10$QVa2JNaw.VozkHyRWlEGNeAjYfiHEksxVVMhDZPjhGsuAY9MO51.C' );
insert into user ( nick, mail, password ) values ( 'pepino', 'prochazka@pedf.cuni.cz', '$2y$10$QVa2JNaw.VozkHyRWlEGNeAjYfiHEksxVVMhDZPjhGsuAY9MO51.C' );
insert into user ( nick, mail, password ) values ( 'test', 'test@mail.cz', '$2y$10$QVa2JNaw.VozkHyRWlEGNeAjYfiHEksxVVMhDZPjhGsuAY9MO51.C' );
insert into user ( nick, mail, password ) values ( 'aaaaa', 'test@mail.cz', '$2y$10$QVa2JNaw.VozkHyRWlEGNeAjYfiHEksxVVMhDZPjhGsuAY9MO51.C' );
insert into user ( nick, mail, password ) values ( 'aaaa', 'test@mail.cz', '$2y$10$QVa2JNaw.VozkHyRWlEGNeAjYfiHEksxVVMhDZPjhGsuAY9MO51.C' );
insert into user ( nick, mail, password ) values ( 'aaa', 'test@mail.cz', '$2y$10$QVa2JNaw.VozkHyRWlEGNeAjYfiHEksxVVMhDZPjhGsuAY9MO51.C' );
insert into user ( nick, mail, password ) values ( 'aa', 'test@mail.cz', '$2y$10$QVa2JNaw.VozkHyRWlEGNeAjYfiHEksxVVMhDZPjhGsuAY9MO51.C' );
insert into brewery (name, region, description) values ( 'Zichovec', 'Louny', 'Remeslny pivovar');
insert into brewery (name, region, description) values ( 'Siberia', 'Praha 9-Vysočany', 'Remeslny pivovar');
insert into brewery (name, region, description) values ( 'Matuska', 'Broumy', 'Remeslny pivovar');
insert into brewery (name, region, description) values ( 'Cestmir', 'Stara Boleslav', 'Remeslny pivovar');
insert into brewery (name, region, description) values ( 'Prazdroj', 'Plzen', 'Pilsner Urquell');
insert into beer ( name, alc, ibu, description, brewery_id) values ( 'Robin', 5.1, '40', '12', '1' );
insert into beer ( name, alc, ibu, description, brewery_id) values ( 'Krahulik', 5.0, '32', '12', '1' );
insert into beer ( name, alc, ibu, description, brewery_id) values ( 'Pilsner Urquell', 4.4, '38', '12', '5' );
insert into beer ( name, alc, ibu, description, brewery_id) values ( 'Zlata Raketa', 7.0, '60', '17', '3' );
insert into beer ( name, alc, ibu, description, brewery_id) values ( 'Yummy Blackcurrant Raspberry & Lingonberry', 5.1, '40', '12', '2' );
insert into tag ( tag_title ) values ( 'IPA' );
insert into tag ( tag_title ) values ( 'APA' );
insert into tag ( tag_title ) values ( 'LEZAK' );
insert into tag ( tag_title ) values ( 'PASTRY SOUR' );
insert into tag ( tag_title ) values ( 'SOUR' );
insert into tag ( tag_title ) values ( 'NEIPA' );
insert into beer_has_tag ( beer_id, tag_id ) values ( '4', '1' );
insert into beer_has_tag ( beer_id, tag_id ) values ( '1', '2' );
insert into beer_has_tag ( beer_id, tag_id ) values ( '2', '3' );
insert into beer_has_tag ( beer_id, tag_id ) values ( '3', '3' );
insert into beer_has_tag ( beer_id, tag_id ) values ( '5', '4' );
insert into beer_has_tag ( beer_id, tag_id ) values ( '5', '5' );
insert into follow ( user_id, brewery_id ) values ( '1', '1' );
insert into follow ( user_id, brewery_id ) values ( '1', '2' );
insert into follow ( user_id, brewery_id ) values ( '1', '3' );
insert into follow ( user_id, brewery_id ) values ( '1', '4' );
insert into follow ( user_id, brewery_id ) values ( '1', '5' );
insert into follow ( user_id, brewery_id ) values ( '2', '5' );
insert into follow ( user_id, brewery_id ) values ( '2', '3' );
insert into follow ( user_id, brewery_id ) values ( '3', '1' );
insert into follow ( user_id, brewery_id ) values ( '3', '2' );
insert into list ( user_id, beer_id, rating ) values ( '1', '1', '5' );
insert into list ( user_id, beer_id, rating ) values ( '1', '2', '4' );
insert into list ( user_id, beer_id, rating ) values ( '1', '3', '5' );
insert into list ( user_id, beer_id, rating ) values ( '1', '4', '4' );
insert into list ( user_id, beer_id, rating ) values ( '1', '5', '5' );
insert into list ( user_id, beer_id, rating ) values ( '2', '3', '5' );
insert into list ( user_id, beer_id ) values ( '2', '4');
insert into list ( user_id, beer_id ) values ( '2', '1' );
insert into list ( user_id, beer_id, rating ) values ( '3', '4', '5' );
insert into list ( user_id, beer_id, rating ) values ( '3', '5', '5');