use token for reservation

This commit is contained in:
Tomas Kopecek 2019-06-18 11:41:09 +02:00 committed by Mike McLean
parent 395cf0f76e
commit f2647a687b
2 changed files with 52 additions and 7 deletions

View file

@ -299,6 +299,13 @@ CREATE TABLE build_types (
) WITHOUT OIDS;
CREATE TABLE build_reservations (
build_id INTEGER NOT NULL REFERENCES build(id),
user_id INTEGER NOT NULL REFERENCES users(id),
token VARCHAR(64),
PRIMARY KEY (build_id)
) WITHOUT OIDS;
-- Note: some of these CREATEs may seem a little out of order. This is done to keep
-- the references sane.