Refactored monthly invoice generation job

This commit is contained in:
Sergei Tsõganov 2022-10-12 09:59:21 +03:00
parent cd8e14a177
commit 5e6dbac462
20 changed files with 367 additions and 486 deletions

View file

@ -1198,6 +1198,7 @@ CREATE TABLE public.invoices (
payment_link character varying,
monthly_invoice boolean DEFAULT false,
metadata jsonb,
sent_at timestamp without time zone,
CONSTRAINT invoices_due_date_is_not_before_issue_date CHECK ((due_date >= issue_date))
);
@ -5405,7 +5406,6 @@ INSERT INTO "schema_migrations" (version) VALUES
('20220113201642'),
('20220113220809'),
('20220124105717'),
('20220216113112'),
('20220228093211'),
('20220316140727'),
('20220406085500'),
@ -5416,6 +5416,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20220504090512'),
('20220524130709'),
('20220701113409'),
('20220818075833');
('20220818075833'),
('20221011061840');