feat: add transaction, card , and account entities

This commit is contained in:
Abdalhamid Alhamad
2025-07-02 18:42:38 +03:00
parent 4cbbfd8136
commit d3057beb54
29 changed files with 670 additions and 21 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ export class Customer extends BaseEntity {
userId!: string;
@Column('varchar', { name: 'country', length: 255, nullable: true })
country!: string;
country!: CountryIso;
@Column('varchar', { name: 'region', length: 255, nullable: true })
region!: string;
@@ -15,7 +15,7 @@ export class CustomerRepository {
findOne(where: FindOptionsWhere<Customer>) {
return this.customerRepository.findOne({
where,
relations: ['profilePicture', 'user', 'civilIdFront', 'civilIdBack'],
relations: ['profilePicture', 'user', 'civilIdFront', 'civilIdBack', 'cards'],
});
}