From 43146e9f46ea60abf22436daae61736e1fbad281 Mon Sep 17 00:00:00 2001 From: Sergei Samokhvalov Date: Thu, 27 Jun 2024 14:21:08 +0700 Subject: [PATCH] Add settings column to model and presentation (#147) --- src/db/models/new/tenant/index.ts | 2 ++ src/db/presentations/joined-migration-tenant/index.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/db/models/new/tenant/index.ts b/src/db/models/new/tenant/index.ts index 1e4d5983..9f9bb646 100644 --- a/src/db/models/new/tenant/index.ts +++ b/src/db/models/new/tenant/index.ts @@ -16,6 +16,7 @@ export const TenantColumn = { BillingStartedAt: 'billingStartedAt', BillingEndedAt: 'billingEndedAt', Branding: 'branding', + Settings: 'settings', } as const; export class Tenant extends Model { @@ -42,4 +43,5 @@ export class Tenant extends Model { [TenantColumn.BillingStartedAt]!: Nullable; [TenantColumn.BillingEndedAt]!: Nullable; [TenantColumn.Branding]!: Record; + [TenantColumn.Settings]!: Record; } diff --git a/src/db/presentations/joined-migration-tenant/index.ts b/src/db/presentations/joined-migration-tenant/index.ts index 977d67e9..cd1f3b4f 100644 --- a/src/db/presentations/joined-migration-tenant/index.ts +++ b/src/db/presentations/joined-migration-tenant/index.ts @@ -19,6 +19,7 @@ const selectedTenantColumns = [ TenantColumn.BillingStartedAt, TenantColumn.BillingEndedAt, TenantColumn.Branding, + TenantColumn.Settings, ] as const; const selectedMigrationTenantColumns = [ @@ -48,6 +49,7 @@ export const JoinedMigrationTenantColumn = { Migrating: MigrationTenantColumn.Migrating, MigrationMeta: MigrationTenantColumn.MigrationMeta, Branding: TenantColumn.Branding, + Settings: TenantColumn.Settings, } as const; export const selectedJoinedMigrationTenantColumns = [