Skip to content

Documentation


Documentation / @kizami/db / getTenantById

Function: getTenantById()

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