Fix market_id column nullable

This commit is contained in:
ekzyis 2023-12-04 04:56:01 +01:00
parent 5969b23a31
commit 4a8981400d
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ CREATE TABLE markets(
CREATE EXTENSION "uuid-ossp";
CREATE TABLE shares(
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
market_id INTEGER REFERENCES markets(id),
market_id INTEGER NOT NULL REFERENCES markets(id),
win BOOLEAN,
description TEXT NOT NULL
);