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

17 lines
347 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE item (
item_id CHAR(16) PRIMARY KEY,
user_id CHAR(36) NOT NULL,
group_id CHAR(16) NOT NULL,
group_weight INT NOT NULL,
name TEXT NOT NULL,
description TEXT NOT NULL
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE item;
-- +goose StatementEnd