paymant clean codes

This commit is contained in:
2026-04-07 16:45:28 +03:30
parent b3cc419dd1
commit 87d0ea3792
4 changed files with 11 additions and 15 deletions
@@ -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;