quivr/supabase/migrations/20240103193921_stripe_customers.sql

30 lines
527 B
MySQL
Raw Normal View History

2024-01-03 23:53:37 +03:00
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'
);