Files
dsc-api/src/modules/payments/entities/payment-gateway.entity.ts
T

23 lines
621 B
TypeScript
Executable File

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, unique: true })
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;
}