security/codeql-dependabot-gitleaks
| 1 | import { model } from "@medusajs/framework/utils" |
| 2 | import Store from "./store" |
| 3 | |
| 4 | const StoreCurrency = model.define("StoreCurrency", { |
| 5 | id: model.id({ prefix: "stocur" }).primaryKey(), |
| 6 | currency_code: model.text().searchable(), |
| 7 | is_default: model.boolean().default(false), |
| 8 | store: model |
| 9 | .belongsTo(() => Store, { |
| 10 | mappedBy: "supported_currencies", |
| 11 | }) |
| 12 | .nullable(), |
| 13 | }) |
| 14 | |
| 15 | export default StoreCurrency |