Files
api/database/postgres/migrations/20210327143154_create_table_log.sql
T
gisle 6748ff8bc2
continuous-integration/drone/push Build is passing
add log and post postgres repos.
2021-03-28 15:10:56 +02:00

20 lines
440 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE log (
id TEXT NOT NULL PRIMARY KEY,
short_id TEXT NOT NULL UNIQUE,
character_ids TEXT[] NOT NULL,
date TIMESTAMP NOT NULL,
channel_name TEXT NOT NULL,
event_name TEXT NOT NULL,
title TEXT NOT NULL,
description TEXT NOT NULL,
open BOOLEAN NOT NULL
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE log;
-- +goose StatementEnd