butler/migrations/20230814031823_init.sql

15 lines
314 B
MySQL
Raw Normal View History

2023-08-13 20:40:36 +00:00
-- +goose Up
-- +goose StatementBegin
2023-08-13 17:17:42 +00:00
CREATE TABLE users (
id SERIAL PRIMARY KEY,
chat_id TEXT NOT NULL,
user_id TEXT NOT NULL,
CONSTRAINT unique__chat_id__user_id UNIQUE (chat_id, user_id)
2023-08-13 20:40:36 +00:00
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE users;
-- +goose StatementEnd