Austin Bonander 46878e8c0b feat: multi-tenant example
No longer Axum-based because filling out the request routes would have distracted from the purpose of the example.
2025-02-27 16:20:09 -08:00

11 lines
322 B
SQL

create table accounts.account
(
account_id uuid primary key default gen_random_uuid(),
email text unique not null,
password_hash text not null,
created_at timestamptz not null default now(),
updated_at timestamptz
);
select accounts.trigger_updated_at('accounts.account');