diff --git a/sql/create-entities-table.sql b/sql/create-entities-table.sql index dfb7d23..2491848 100644 --- a/sql/create-entities-table.sql +++ b/sql/create-entities-table.sql @@ -4,3 +4,16 @@ DROP TABLE IF EXISTS entities; CREATE TABLE IF NOT EXISTS entities( id BIGSERIAL PRIMARY KEY, name TEXT NOT NULL); +--- +DELETE FROM entities; +INSERT INTO entities (name) +VALUES +('AfB gemeinnützige GmbH'), +('Green Planet Energy eG'), +('Hostsharing eG'), +('kleiner Heide Laden'), +('Regionale Energie- und KlimaschutzAgentur e. V.'), +('Software Ingenieur Begerad'), +('WEtell GmbH'), +('WTF Kooperative eG') +RETURNING *; diff --git a/sql/create-relations-table.sql b/sql/create-relations-table.sql index 4dd48a3..ffa9923 100644 --- a/sql/create-relations-table.sql +++ b/sql/create-relations-table.sql @@ -9,3 +9,17 @@ CREATE TABLE IF NOT EXISTS relations( FOREIGN KEY(relation_role) REFERENCES relation_roles(id), FOREIGN KEY(to_entity) REFERENCES entities(id), FOREIGN KEY(from_entity) REFERENCES entities(id)); +--- +DELETE FROM relations; +INSERT INTO relations (relation_role,from_entity,to_entity) +VALUES +(1,6,1), +(1,6,2), +(1,6,3), +(1,6,4), +(1,6,5), +(1,6,7), +(1,6,8), +(1,5,6) +RETURNING *; +