add new migration

This commit is contained in:
Jun-te Kim 2026-01-18 15:20:39 +00:00
parent 4721a6e459
commit 914b7b0971

View file

@ -0,0 +1,7 @@
-- Ensure one Stripe account per user
CREATE UNIQUE INDEX stripe_accounts_user_unique
ON stripe_accounts (user_id);
-- Prevent the same Stripe account being linked twice
CREATE UNIQUE INDEX stripe_accounts_stripe_account_unique
ON stripe_accounts (stripe_account_id);