Appearance
Documentation / @kizami/db / index / updateTenantPersonalDataRetentionYears
Function: updateTenantPersonalDataRetentionYears()
updateTenantPersonalDataRetentionYears(
db,params):Promise<{createdAt:number;id:string;isSmallOrMediumEnterprise:boolean;isSpecialProvisionWorkplace:boolean;name:string;personalDataRetentionYears:number;privacyContactPoint:string|null;recordRetentionDescription:string|null;specialClauseEnabled:boolean;workRulesUrl:string|null; }>
Defined in: packages/db/src/queries/tenants.ts:102
退職者の個人データの保持年数(personal_data_retention_years)を更新する (UPDATE、現在値のみ。2026-08-27、docs/design/data-retention.md)。
3 / 5 のどちらかであることの検証は呼び出し側(apps/api/src/routes/settings/privacy.ts)が行う — 他のクエリと同じく、DB 層は値の意味を解釈しない。 呼び出し側が監査ログへの記録を担う。
Parameters
db
Database | SQLiteTransaction<"async", ResultSet, schema, ExtractTablesWithRelations<schema>>
params
personalDataRetentionYears
number
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; }>