chore: normalize the payment and payment transaction
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { Column, Entity } from "typeorm";
|
||||
|
||||
import { BaseEntity } from "../../../common/entities/base.entity";
|
||||
import { GatewayEnum } from "../enums/gateway.enum";
|
||||
|
||||
@Entity()
|
||||
export class PaymentGateway extends BaseEntity {
|
||||
@Column({ type: "enum", enum: GatewayEnum, nullable: false })
|
||||
name: GatewayEnum;
|
||||
|
||||
@Column({ type: "varchar", length: 150, nullable: false })
|
||||
nameFa: string;
|
||||
|
||||
@Column({ type: "varchar", length: 150, nullable: false })
|
||||
logoUrl: string;
|
||||
|
||||
@Column({ type: "boolean", default: true })
|
||||
isActive: boolean;
|
||||
|
||||
@Column({ type: "text", nullable: true })
|
||||
description: string;
|
||||
}
|
||||
Reference in New Issue
Block a user