collab: Add has_overdue_invoices to billing_customers (#24239)

This PR adds a new `has_overdue_invoices` field to the
`billing_customers` table.

This will be used to statefully track whether a customer has overdue
invoices, and also to reset it when the invoices are paid.

We will set this field to `true` when a subscription is canceled with
the reason `payment_failed`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-02-04 18:12:35 -05:00 committed by GitHub
parent b13498a5dd
commit aa3da35e8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,2 @@
alter table billing_customers
add column has_overdue_invoices bool not null default false;