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.
15 lines
520 B
SQL
15 lines
520 B
SQL
create table if not exists admin_user
|
|
(
|
|
id serial
|
|
primary key,
|
|
username varchar(255) not null
|
|
unique,
|
|
password_hash varchar(255) not null,
|
|
is_active boolean default true not null,
|
|
created_at timestamp with time zone default now() not null,
|
|
updated_at timestamp with time zone default now() not null
|
|
);
|
|
|
|
create index if not exists idx_admin_user_username
|
|
on admin_user (username);
|