generated from templates/go-generic
14 lines
314 B
MySQL
14 lines
314 B
MySQL
|
-- +goose Up
|
||
|
CREATE TABLE feeds (
|
||
|
id UUID PRIMARY KEY,
|
||
|
created_at TIMESTAMP NOT NULL,
|
||
|
updated_at TIMESTAMP NOT NULL,
|
||
|
name varchar(255) NOT NULL,
|
||
|
url varchar(255) NOT NULL UNIQUE,
|
||
|
user_id UUID NOT NULL,
|
||
|
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
|
||
|
);
|
||
|
|
||
|
-- +goose Down
|
||
|
DROP TABLE feeds;
|