feat(premium): initial subscription implementation through paddle

This commit is contained in:
alyssa 2026-01-04 14:00:42 -05:00
parent 81cde5e688
commit 226947e6aa
15 changed files with 1121 additions and 144 deletions

10
crates/premium/init.sql Normal file
View file

@ -0,0 +1,10 @@
create table premium_subscriptions (
id serial primary key,
provider text not null,
provider_id text not null,
email text not null,
system_id int references systems(id) on delete set null,
status text,
next_renewal_at text,
unique (provider, provider_id)
)