First commit
This commit is contained in:
12
flyway/sql/V1___initial_schema.sql
Normal file
12
flyway/sql/V1___initial_schema.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE shopping_lists (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
active BOOLEAN DEFAULT TRUE
|
||||
);
|
||||
|
||||
CREATE TABLE shopping_list_items (
|
||||
id SERIAL PRIMARY KEY,
|
||||
shopping_list_id INTEGER REFERENCES shopping_lists(id),
|
||||
name TEXT NOT NULL,
|
||||
collected BOOLEAN DEFAULT FALSE
|
||||
);
|
||||
Reference in New Issue
Block a user