14 lines
346 B
SQL
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; |