feat: add vpan to card entity

This commit is contained in:
Abdalhamid Alhamad
2025-08-03 11:53:16 +03:00
parent 5e0a4e6bd1
commit fce720237f
7 changed files with 41 additions and 9 deletions

View File

@ -23,6 +23,10 @@ export class Card {
@Column({ name: 'card_reference', nullable: false, type: 'varchar' })
cardReference!: string;
@Index({ unique: true })
@Column({ name: 'vpan', nullable: false, type: 'varchar' })
vpan!: string;
@Column({ length: 6, name: 'first_six_digits', nullable: false, type: 'varchar' })
firstSixDigits!: string;