PluralKit/crates/premium/init.sql

11 lines
365 B
MySQL
Raw Permalink Normal View History

create table premium_subscriptions (
id serial primary key,
provider text not null,
provider_id text not null,
email text not null,
2025-12-28 00:06:51 +13:00
system_id int references systems (id) on delete set null,
allowance_id int references premium_allowances (id) on delete set null,
status text,
next_renewal_at text,
unique (provider, provider_id)
)