Skip to content

Commit

Permalink
Add settings column to model and presentation (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-weber authored Jun 27, 2024
1 parent 010f2cf commit 43146e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/db/models/new/tenant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const TenantColumn = {
BillingStartedAt: 'billingStartedAt',
BillingEndedAt: 'billingEndedAt',
Branding: 'branding',
Settings: 'settings',
} as const;

export class Tenant extends Model {
Expand All @@ -42,4 +43,5 @@ export class Tenant extends Model {
[TenantColumn.BillingStartedAt]!: Nullable<string>;
[TenantColumn.BillingEndedAt]!: Nullable<string>;
[TenantColumn.Branding]!: Record<string, unknown>;
[TenantColumn.Settings]!: Record<string, unknown>;
}
2 changes: 2 additions & 0 deletions src/db/presentations/joined-migration-tenant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const selectedTenantColumns = [
TenantColumn.BillingStartedAt,
TenantColumn.BillingEndedAt,
TenantColumn.Branding,
TenantColumn.Settings,
] as const;

const selectedMigrationTenantColumns = [
Expand Down Expand Up @@ -48,6 +49,7 @@ export const JoinedMigrationTenantColumn = {
Migrating: MigrationTenantColumn.Migrating,
MigrationMeta: MigrationTenantColumn.MigrationMeta,
Branding: TenantColumn.Branding,
Settings: TenantColumn.Settings,
} as const;

export const selectedJoinedMigrationTenantColumns = [
Expand Down

0 comments on commit 43146e9

Please sign in to comment.