mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 01:55:15 +03:00
30 lines
527 B
MySQL
30 lines
527 B
MySQL
|
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'
|
||
|
);
|