add service

This commit is contained in:
vallyenfail
2026-01-17 23:56:00 +03:00
parent 5487618019
commit 15f3703342
4 changed files with 9 additions and 25 deletions

View File

@@ -1,15 +1,15 @@
-- +goose Up
CREATE TABLE IF NOT EXISTS mailing_status (
CREATE TABLE IF NOT EXISTS mailling_status (
id SERIAL PRIMARY KEY,
status_name TEXT NOT NULL UNIQUE
);
INSERT INTO mailing_status (status_name) VALUES
('pending'),
('in_progress'),
('completed'),
('failed')
INSERT INTO mailling_status (status_name) VALUES
('PENDING'),
('IN_PROGRESS'),
('COMPLETED'),
('FAILED')
ON CONFLICT (status_name) DO NOTHING;
-- +goose Down
DROP TABLE mailing_status;
DROP TABLE mailling_status;