Replace individual Rust migration modules with a define_sql_migrations macro that reads up/down SQL files via include_str!. Consolidate all legacy single-file SQL into per-table directories and add full schema migration coverage for 90+ tables.
17 lines
532 B
SQL
17 lines
532 B
SQL
create table if not exists "user"
|
|
(
|
|
uid uuid not null
|
|
primary key,
|
|
username varchar(255) not null,
|
|
display_name varchar(255),
|
|
avatar_url varchar(255),
|
|
website_url varchar(255),
|
|
organization varchar(255),
|
|
last_sign_in_at timestamp with time zone,
|
|
created_at timestamp with time zone not null,
|
|
updated_at timestamp with time zone not null
|
|
);
|
|
|
|
create index if not exists idx_user_username
|
|
on "user" (username);
|