Further work on auto-generation of components

This commit is contained in:
Simon Brooke 2018-06-14 21:33:20 +01:00
parent 706e42f483
commit bfb5a67266
43 changed files with 2254 additions and 911 deletions

View file

@ -8,3 +8,11 @@ insert into issues (id, url) values ('Currency', 'https://www.yyy.scot/wiki/issu
insert into issues (id, url) values ('Monarchy', 'https://www.yyy.scot/wiki/issues/Monarchy');
insert into issues (id, url) values ('Defence', 'https://www.yyy.scot/wiki/issues/Defence');
insert into genders (id ) values ('Female');
insert into genders (id ) values ('Male');
insert into genders (id ) values ('Non-binary');
insert into genders (id ) values ('Unknown');

View file

@ -1,15 +1,15 @@
-- enough data to get the system working and real logins
insert into addresses (id, address, postcode, latitude, longitude)
values (5, 'West Croft, Standingstone, Auchencairn', 'DG7 1RF', 54.822389, -3.920265);
insert into addresses (address, postcode, latitude, longitude)
values ('West Croft, Standingstone, Auchencairn', 'DG7 1RF', 54.822389, -3.920265);
insert into dwellings (id, address_id, sub_address)
values (5, 5, '');
insert into electors (id, name, dwelling_id, gender)
values (11, 'Simon Brooke', 5, 'Male');
insert into electors (name, dwelling_id, gender)
values ('Simon Brooke', 1, 'Male');
insert into authorities (id) values ('GitHub');
insert into canvassers (username, fullname, elector_id, address_id, authority_id, authorised)
values ('simon_brooke', 'Simon Brooke', 11, 5, 'GitHub', true);
values ('simon_brooke', 'Simon Brooke', 2, 2, 'GitHub', true);