remove graph
This commit is contained in:
@@ -1,31 +1,23 @@
|
||||
import { Entity, Property } from '@mikro-orm/core';
|
||||
import { BaseEntity } from '../../../common/entities/base.entity';
|
||||
import { ObjectType, Field, Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
@Entity({ tableName: 'payment_methods' })
|
||||
export class PaymentMethod extends BaseEntity {
|
||||
@Field()
|
||||
@Property()
|
||||
name!: string;
|
||||
|
||||
@Field()
|
||||
@Property()
|
||||
keyName!: string;
|
||||
|
||||
@Field({ nullable: true })
|
||||
@Property({ nullable: true })
|
||||
description?: string;
|
||||
|
||||
@Field({ nullable: true })
|
||||
@Property({ nullable: true })
|
||||
icon?: string;
|
||||
|
||||
@Field(() => Boolean)
|
||||
@Property({ default: true })
|
||||
isActive: boolean = true;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
@Property({ type: 'int', nullable: true })
|
||||
order?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user