1
2
3
4
5
6
7
8
9
10
11
12
13
import process from "node:process";
import { supaBaseQuery } from "https://esm.town/v/vtdocs/supaBaseQuery";
export const supabaseCreateMyFirstTable = supaBaseQuery(
process.env.supabasePostgres,
`create table my_first_table (
id bigint generated by default as identity primary key,
inserted_at timestamp with time zone default timezone('utc'::text, now()) not null,
updated_at timestamp with time zone default timezone('utc'::text, now()) not null,
data jsonb,
name text
);`,
);