Fix market_id column nullable
This commit is contained in:
parent
5969b23a31
commit
4a8981400d
|
@ -38,7 +38,7 @@ CREATE TABLE markets(
|
||||||
CREATE EXTENSION "uuid-ossp";
|
CREATE EXTENSION "uuid-ossp";
|
||||||
CREATE TABLE shares(
|
CREATE TABLE shares(
|
||||||
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||||
market_id INTEGER REFERENCES markets(id),
|
market_id INTEGER NOT NULL REFERENCES markets(id),
|
||||||
win BOOLEAN,
|
win BOOLEAN,
|
||||||
description TEXT NOT NULL
|
description TEXT NOT NULL
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue