security/codeql-dependabot-gitleaks
| 1 | import { model } from "@medusajs/framework/utils" |
| 2 | import RegionCountry from "./country" |
| 3 | |
| 4 | export default model.define("region", { |
| 5 | id: model.id({ prefix: "reg" }).primaryKey(), |
| 6 | name: model.text().searchable().translatable(), |
| 7 | currency_code: model.text().searchable(), |
| 8 | automatic_taxes: model.boolean().default(true), |
| 9 | countries: model.hasMany(() => RegionCountry), |
| 10 | metadata: model.json().nullable(), |
| 11 | }) |