add various test data to all tables
This commit is contained in:
parent
0308f06dae
commit
245c555878
|
@ -6,6 +6,27 @@
|
|||
-- Datum: 2017-06-05
|
||||
-- Server Version: SQL Server 2016
|
||||
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.member_status (status_name)
|
||||
values ('test_member'),
|
||||
('full_member');
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.salutations (salutation_name)
|
||||
values ('Herr'),
|
||||
('Frau'),
|
||||
('Dr.');
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.subscriptions (max_rented_locations,
|
||||
subscription_price,
|
||||
subscription_name,
|
||||
duration_in_seconds)
|
||||
values (1,300,'Small',15552000),
|
||||
(1,500,'Small Lungo',31536000),
|
||||
(3,500,'Grande',15552000);
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.cities (zip_code, city_name)
|
||||
values ('5000','Aarau'),
|
||||
|
@ -997,6 +1018,7 @@ values ('5000','Aarau'),
|
|||
('2814','Roggenburg'),
|
||||
('4117','Burg im Leimental');
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.cities (zip_code, city_name)
|
||||
values ('4202','Duggingen'),
|
||||
('4203','Grellingen'),
|
||||
|
@ -1997,6 +2019,7 @@ values ('4202','Duggingen'),
|
|||
('6163','Ebnet'),
|
||||
('6166','Hasle LU');
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.cities (zip_code, city_name)
|
||||
values ('6167','Bramboden'),
|
||||
('6170','Schüpfheim'),
|
||||
|
@ -2997,6 +3020,7 @@ values ('6167','Bramboden'),
|
|||
('9556','Affeltrangen'),
|
||||
('9562','Märwil');
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.cities (zip_code, city_name)
|
||||
values ('9562','Buch b. Märwil'),
|
||||
('9565','Schmidshof'),
|
||||
|
@ -3997,6 +4021,7 @@ values ('9562','Buch b. Märwil'),
|
|||
('3945','Niedergampel'),
|
||||
('3946','Turtmann');
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.cities (zip_code, city_name)
|
||||
values ('3946','Gruben'),
|
||||
('3947','Ergisch'),
|
||||
|
@ -4592,4 +4617,56 @@ values ('3946','Gruben'),
|
|||
('6721','Ludiano'),
|
||||
('6911','Campione d''Italia'),
|
||||
('8238','Büsingen'),
|
||||
('9489','Schaan Log');
|
||||
('9489','Schaan Log');
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.countries (country_name)
|
||||
values ('Schweiz'),
|
||||
('Deutschland'),
|
||||
('Österreich');
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.locations (streetname,
|
||||
location_capacity,
|
||||
location_name,
|
||||
city_id,
|
||||
country_id)
|
||||
values ('Markstrasse',300,'Testmarkt',5,1),
|
||||
('Teststrasse',450,'Testmark2',6,1);
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.rent_prices (location_id,
|
||||
rent_price)
|
||||
values (1,450),
|
||||
(2,500);
|
||||
|
||||
use marketdb;
|
||||
insert into dbo.persons (salutation_id,
|
||||
firstname,
|
||||
lastname,
|
||||
date_of_birth,
|
||||
streetname,
|
||||
streetnumber,
|
||||
city_id,
|
||||
country_id)
|
||||
values (1,'Max','Muster','1989-07-31','Musterstrasse',3,4,1),
|
||||
(2,'Hannah','Muster','1988-05-08','Beispielstrasse',13,6,1);
|
||||
|
||||
-- insert members without person reference
|
||||
use marketdb;
|
||||
insert into dbo.members (email_address,
|
||||
password,
|
||||
member_status_id,
|
||||
date_of_registration)
|
||||
values ('test_member@gmail.com',123456,1,'2017-07-08'),
|
||||
('full_member@gmail.com',123456,2,'2017-07-08');
|
||||
|
||||
-- insert member with person reference
|
||||
use marketdb;
|
||||
insert into dbo.members (email_address,
|
||||
password,
|
||||
member_status_id,
|
||||
date_of_registration,
|
||||
person_id)
|
||||
values ('person@gmail.com',123456,2,'2017-07-08',1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue