Generated
Executes constructor.
constructor
The db value.
db
The function result.
Objective: In module packages/db/src/repositories/pcmso.repository.ts, run constructor.
packages/db/src/repositories/pcmso.repository.ts
Behavior: accepts db; returns a value.
Private
Executes create.
create
The data value.
data
Objective: In module packages/db/src/repositories/pcmso.repository.ts, run create.
Behavior: Async; accepts data; returns a value; invokes this.db .insert(afastamentos) .values({ tenantId: data.tenan.
this.db .insert(afastamentos) .values({ tenantId: data.tenan
Returns the result of findByTenant.
findByTenant
The tenantId value.
tenantId
Objective: In module packages/db/src/repositories/pcmso.repository.ts, retrieve data through findByTenant.
Behavior: Async; accepts tenantId; returns a value; invokes this.db .select() .from(afastamentos) .where(eq(afastamentos.
this.db .select() .from(afastamentos) .where(eq(afastamentos
Executes
constructor.