paymant clean codes
This commit is contained in:
@@ -6,6 +6,7 @@ import { PaymentGatewayEnum, PaymentMethodEnum } from '../interface/payment';
|
||||
@Entity({ tableName: 'payment_methods' })
|
||||
@Unique({ properties: ['restaurant', 'method'] })
|
||||
@Index({ properties: ['restaurant', 'enabled'] })
|
||||
@Index({ properties: ['restaurant'] })
|
||||
export class PaymentMethod extends BaseEntity {
|
||||
@ManyToOne(() => Restaurant)
|
||||
restaurant!: Restaurant;
|
||||
|
||||
Reference in New Issue
Block a user