feat: add i18n persistence model

This commit is contained in:
poyrazavsever
2026-07-19 03:06:47 +03:00
parent f4a2342ac4
commit 805beccf95
11 changed files with 4670 additions and 3 deletions
+2
View File
@@ -45,6 +45,7 @@ export const clients = sqliteTable(
email: text("email"),
phone: text("phone"),
website: text("website"),
portalLocale: text("portal_locale"),
status: text("status").$type<ClientStatus>().default("active").notNull(),
pipelineStage: text("pipeline_stage").$type<ClientPipelineStage>().default("lead").notNull(),
nextFollowUpDate: text("next_follow_up_date"),
@@ -60,6 +61,7 @@ export const clients = sqliteTable(
index("clients_owner_user_id_idx").on(table.ownerUserId),
index("clients_owner_status_idx").on(table.ownerUserId, table.status),
index("clients_owner_pipeline_idx").on(table.ownerUserId, table.pipelineStage),
index("clients_portal_locale_idx").on(table.portalLocale),
index("clients_next_follow_up_date_idx").on(table.nextFollowUpDate),
check("clients_status_check", sql`${table.status} in ('active', 'paused', 'archived')`),
check(