automation/medusa-upstream-review
| 1 | import { model } from "@medusajs/framework/utils" |
| 2 | import { TaxRegion } from "@models" |
| 3 | |
| 4 | const TaxProvider = model.define("TaxProvider", { |
| 5 | id: model.id().primaryKey(), |
| 6 | is_enabled: model.boolean().default(true), |
| 7 | regions: model.hasMany(() => TaxRegion, { |
| 8 | mappedBy: "provider", |
| 9 | }), |
| 10 | }) |
| 11 | |
| 12 | export default TaxProvider |