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

17 lines
355 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE log (
log_id CHAR(16) PRIMARY KEY,
user_id CHAR(36) NOT NULL,
task_id CHAR(16) NOT NULL,
item_id CHAR(16) NOT NULL,
logged_time TIMESTAMP NOT NULL,
description TEXT NOT NULL
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE log;
-- +goose StatementEnd