You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
270 B
11 lines
270 B
1 year ago
|
-- Add up migration script here
|
||
|
CREATE TABLE IF NOT EXISTS teams (
|
||
|
id SERIAL PRIMARY KEY NOT NULL,
|
||
|
name VARCHAR(255) NOT NULL,
|
||
|
division INTEGER NOT NULL,
|
||
|
CONSTRAINT division_fk
|
||
|
FOREIGN KEY(division)
|
||
|
REFERENCES divisions(id)
|
||
|
ON DELETE RESTRICT
|
||
|
);
|