Files
ccp/internal/migrations/00005_goal_notifications.sql
adamf 453cef40af
Test and publish / test (push) Successful in 1m40s
Test and publish / publish (push) Successful in 3m45s
Add goal notifications and collector health
2026-10-23 20:45:51 +01:00

11 lines
320 B
SQL

-- +goose Up
CREATE TABLE goal_notifications (
goal_id bigint NOT NULL REFERENCES goals (id) ON DELETE CASCADE,
notification_date date NOT NULL,
sent_at timestamptz NOT NULL DEFAULT now(),
PRIMARY KEY (goal_id, notification_date)
);
-- +goose Down
DROP TABLE goal_notifications;