Skip to content

Documentation


Documentation / @kizami/db / index / getTenantById

Function: getTenantById() ​

getTenantById(db, tenantId): Promise<{ createdAt: number; id: string; isSmallOrMediumEnterprise: boolean; isSpecialProvisionWorkplace: boolean; name: string; personalDataRetentionYears: number; privacyContactPoint: string | null; recordRetentionDescription: string | null; specialClauseEnabled: boolean; workRulesUrl: string | null; } | null>

Defined in: packages/db/src/queries/tenants.ts:14

id で1件取得する(存在しなければ null)。

Parameters ​

db ​

Database | SQLiteTransaction<"async", ResultSet, schema, ExtractTablesWithRelations<schema>>

tenantId ​

string

Returns ​

Promise<{ createdAt: number; id: string; isSmallOrMediumEnterprise: boolean; isSpecialProvisionWorkplace: boolean; name: string; personalDataRetentionYears: number; privacyContactPoint: string | null; recordRetentionDescription: string | null; specialClauseEnabled: boolean; workRulesUrl: string | null; } | null>