Files
stufflog2/migrations/postgres/20201218170319_create_table_project.sql
T
2020-12-31 17:49:54 +01:00

19 lines
407 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE project (
project_id CHAR(16) PRIMARY KEY,
user_id CHAR(36) NOT NULL,
name TEXT NOT NULL,
description TEXT NOT NULL,
icon TEXT NOT NULL,
active BOOLEAN NOT NULL,
created_time TIMESTAMP NOT NULL,
end_time TIMESTAMP
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE project;
-- +goose StatementEnd