Finish adding config endpoints

This commit is contained in:
Dominic Ferrando
2026-07-04 02:32:59 -04:00
parent f85225e08f
commit c1d3bed404
4 changed files with 131 additions and 7 deletions
@@ -31,7 +31,7 @@ export async function up(db: Kysely<any>): Promise<void> {
await db.schema.createTable("calculator_configs")
.$call(addDefaultColumns)
.addColumn("standards_config", "jsonb", (cb) => cb.notNull())
.addColumn("is_selected", "boolean", (cb) => cb.notNull())
.addColumn("is_selected", "boolean", (cb) => cb.notNull().defaultTo(false))
.execute();
// INDEX: ONE_SELECTED_CALCULATOR_CONFIG