Files
status/migrations/00002_create_status_table.sql

14 lines
313 B
SQL

-- +goose Up
create table status
(
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 service (id)
);
-- +goose Down