22 lines
586 B
TypeScript
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;
|
|
}
|