Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

[SRI] - Make sure domain objects are consistently referencing other domain objects across the code base #719

@ognjenkurtic

Description

@ognjenkurtic

Overview

Make sure domain objects are consistently referencing other domain objects across the code base. For example, either go with:

export class Workflow {
 ....

  @AutoMap()
  bpiAccountId: string;

  @AutoMap(() => BpiAccount)
  bpiAccount: BpiAccount;
 ....
}

or with:

export class Workflow {
 ....

  @AutoMap(() => BpiAccount)
  bpiAccount: BpiAccount;
 ....
}

Second option is better if it works with Prisma as it reduces code duplication and room for err. Validate and implement

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions