Files
dsc-api/src/modules/payments/entities/bank-account.entity.ts
T
2025-02-04 16:13:45 +03:30

22 lines
586 B
TypeScript

import { Column, Entity } from "typeorm";
import { BaseEntity } from "../../../common/entities/base.entity";
@Entity()
export class BankAccount extends BaseEntity {
@Column({ type: "varchar", length: 100, unique: true, nullable: true })
cardNumber: string;
@Column({ type: "varchar", length: 100, unique: true, nullable: true })
shebaNumber: string;
@Column({ type: "varchar", length: 100, nullable: false })
bankName: string;
@Column({ type: "varchar", length: 150, nullable: false })
accountOwnerName: string;
@Column({ default: true })
isActive: boolean;
}