chore: normalize the payment and payment transaction

This commit is contained in:
mahyargdz
2025-02-06 13:08:51 +03:30
parent f3f47a80a1
commit e216937dd9
23 changed files with 547 additions and 90 deletions
@@ -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;
}