Commit 34eb385d authored by NFC's avatar NFC
Browse files

added collections table

parent 6f349e00
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -151,3 +151,12 @@ CREATE TABLE job (
);

CREATE INDEX owner_idx ON job USING btree(owner_id);

CREATE TABLE collections (
    collection_id     SERIAL        NOT NULL,
    title             VARCHAR       NOT NULL,
    owner_id          VARCHAR       NOT NULL,
    PRIMARY KEY (collection_id),
    FOREIGN KEY (owner_id) REFERENCES users (user_id)
);