Files
medusa-store/packages/modules/payment/src/models/payment-provider.ts
Carlos R. L. Rodrigues 0264294ab5 chore(payment): Payment module DML (#10553)
* chore(payment): Payment module DML

* rm log

* migration
2024-12-11 13:09:10 -03:00

13 lines
381 B
TypeScript

import { model } from "@medusajs/framework/utils"
import PaymentCollection from "./payment-collection"
const PaymentProvider = model.define("PaymentProvider", {
id: model.id().primaryKey(),
is_enabled: model.boolean().default(true),
payment_collections: model.manyToMany(() => PaymentCollection, {
mappedBy: "payment_providers",
}),
})
export default PaymentProvider