The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
import { model } from "@medusajs/framework/utils"
import Seller from "./seller"
const PaymentDetails = model.define("PaymentDetails", {
id: model.id({ prefix: "selpaydet" }).primaryKey(),
country_code: model.text().nullable(),
holder_name: model.text().nullable(),
bank_name: model.text().nullable(),
iban: model.text().nullable(),
bic: model.text().nullable(),
routing_number: model.text().nullable(),
account_number: model.text().nullable(),
seller: model.belongsTo(() => Seller, {
mappedBy: "payment_details",
}),
})
export default PaymentDetails