mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-10-25 19:47:55 +00:00
feat: add transaction, card , and account entities
This commit is contained in:
@@ -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'],
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user