generated from VLADIMIR/template
add game
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE
|
||||
IF NOT EXISTS actions (
|
||||
id SERIAL PRIMARY KEY,
|
||||
code TEXT,
|
||||
team_id INTEGER,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW (),
|
||||
|
||||
CONSTRAINT fk_actions_team FOREIGN KEY (team_id) REFERENCES teams (id) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE IF EXISTS actions;
|
||||
Reference in New Issue
Block a user