forked from mtusi2026/mtusi2026lab6
13 lines
454 B
SQL
13 lines
454 B
SQL
-- +goose Up
|
|
CREATE TABLE attachment_replays (
|
|
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
|
|
job_id uuid NOT NULL REFERENCES attachment_jobs(id),
|
|
operator text NOT NULL CHECK (char_length(operator) BETWEEN 1 AND 100),
|
|
reason text NOT NULL CHECK (char_length(reason) BETWEEN 1 AND 300),
|
|
previous_error text NOT NULL,
|
|
created_at timestamptz NOT NULL DEFAULT clock_timestamp()
|
|
);
|
|
|
|
-- +goose Down
|
|
DROP TABLE attachment_replays;
|