Skip to content

Commit

Permalink
example prototype of collections entries in database
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumetz committed Jul 1, 2024
1 parent 9fd9ca8 commit aed2802
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions source/server/migrations/005-collections.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--------------------------------------------------------------------------------
-- Up
--------------------------------------------------------------------------------

CREATE TABLE collections(
name TEXT NOT NULL,
fk_scene_id INTEGER NOT NULL,
FOREIGN KEY(fk_scene_id) REFERENCES scenes(scene_id),
UNIQUE(name, fk_scene_id)
);

--------------------------------------------------------------------------------
-- Down
--------------------------------------------------------------------------------

DROP TABLE collections;

0 comments on commit aed2802

Please sign in to comment.