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.
20 lines
792 B
SQL
20 lines
792 B
SQL
create table if not exists ai_model
|
|
(
|
|
id uuid not null
|
|
primary key,
|
|
provider_id uuid not null,
|
|
name varchar(255) not null,
|
|
modality varchar(255) not null,
|
|
capability varchar(255) not null,
|
|
context_length bigint not null,
|
|
max_output_tokens bigint,
|
|
training_cutoff timestamp with time zone,
|
|
is_open_source boolean default false not null,
|
|
status varchar(255) not null,
|
|
created_at timestamp with time zone not null,
|
|
updated_at timestamp with time zone not null
|
|
);
|
|
|
|
create index if not exists idx_ai_model_provider_id
|
|
on ai_model (provider_id);
|