quivr/supabase/migrations/20240103193921_stripe_customers.sql
Stan Girard 10d0ec0448 feat: 🎸 supabase
added usage of cli
2024-01-03 21:53:37 +01:00

30 lines
527 B
SQL

create foreign table public.subscriptions (
id text,
customer text,
currency text,
current_period_start timestamp,
current_period_end timestamp,
attrs jsonb
)
server stripe_server
options (
object 'subscriptions',
rowid_column 'id'
);
create foreign table public.products (
id text,
name text,
active bool,
default_price text,
description text,
created timestamp,
updated timestamp,
attrs jsonb
)
server stripe_server
options (
object 'products',
rowid_column 'id'
);