Files
fm_be/migrations/20260622_create_takeover_files.sql
2026-07-16 22:16:45 +07:00

12 lines
345 B
SQL

-- +goose Up
CREATE TABLE IF NOT EXISTS takeover_files (
id BINARY(16) NOT NULL PRIMARY KEY,
takeover_id BINARY(16) NOT NULL,
file_attachment_id BINARY(16) NOT NULL,
KEY idx_takeover_files_takeover_id (takeover_id),
KEY idx_takeover_files_file_attachment_id (file_attachment_id)
);
-- +goose Down
DROP TABLE IF EXISTS takeover_files;