Skip to main content

Class: InflowDto

Data Transfer Object representing a complete inflow record.

Description

This DTO extends the Zod schema from the database to provide complete type safety and validation for inflow records. It represents the full shape of an inflow including system-generated fields like ID and timestamps.

Example

{
* id: 'clf12345-6789-abcd-efgh-ijklmnopqrst',
* amount: 2500.0,
* description: 'Monthly salary',
* tags: ['salary', 'work'],
* createdAt: '2024-02-26T10:00:00.000Z',
* updatedAt: '2024-02-26T10:00:00.000Z'
* }

Extends

  • any

Constructors

new InflowDto()

new InflowDto(): InflowDto

Returns

InflowDto

Inherited from

createZodDto(inflowSelectSchema).constructor