# Variable sql_pg`Const`

sql_pg: "\ncreate table IF NOT EXISTS _sc_models (\n id serial primary key,\n name text not null,\n table_id integer references _sc_tables(id),\n modelpattern text not null,\n configuration jsonb,\n UNIQUE (table_id, name)\n);\ncreate table IF NOT EXISTS _sc_model_instances (\n id serial primary key,\n name text not null,\n model_id integer references _sc_models(id),\n state jsonb,\n hyperparameters jsonb,\n trained_on timestamp not null,\n report text,\n metric_values jsonb,\n parameters jsonb,\n fit_object bytea, \n is_default boolean,\n unique (model_id, name)\n);" = ...

- Defined in packages/saltcorn-data/migrations/202305031518.js:1