Files
status/migrations/00002_create_status_table.sql
2025-08-19 20:38:33 +03:00

14 lines
346 B
SQL

-- +goose Up
create table statuses
(
id bigserial primary key,
service_id bigint,
status varchar(255) not null,
created_at timestamp with time zone,
description varchar(255),
constraint fk_service_statuses FOREIGN KEY (service_id) references services (id)
);
-- +goose Down
drop table if exists statuses;