bug double subscription

This commit is contained in:
Alessio
2026-06-02 21:30:09 +02:00
parent 93be8add4e
commit 938e19c84f
16 changed files with 317 additions and 21 deletions

View File

@@ -57,6 +57,8 @@ CREATE TABLE subscription_payments (
user_id uuid NOT NULL REFERENCES users(id) ON DELETE CASCADE,
subscription_id uuid NOT NULL REFERENCES subscriptions(id) ON DELETE CASCADE,
renewal_date text NOT NULL,
title text NOT NULL,
amount double precision NOT NULL CHECK (amount > 0),
status text NOT NULL,
payment_date text,
linked_payment_id uuid,