security/codeql-dependabot-gitleaks
| 1 | import { model } from "@medusajs/framework/utils" |
| 2 | import Price from "./price" |
| 3 | |
| 4 | const PriceSet = model |
| 5 | .define("PriceSet", { |
| 6 | id: model.id({ prefix: "pset" }).primaryKey(), |
| 7 | prices: model.hasMany(() => Price, { |
| 8 | mappedBy: "price_set", |
| 9 | }), |
| 10 | }) |
| 11 | .cascades({ |
| 12 | delete: ["prices"], |
| 13 | }) |
| 14 | |
| 15 | export default PriceSet |