automation/medusa-upstream-review
| 1 | import { model } from "@medusajs/framework/utils" |
| 2 | |
| 3 | const SalesChannel = model.define("SalesChannel", { |
| 4 | id: model.id({ prefix: "sc" }).primaryKey(), |
| 5 | name: model.text().searchable(), |
| 6 | description: model.text().searchable().nullable(), |
| 7 | is_disabled: model.boolean().default(false), |
| 8 | metadata: model.json().nullable(), |
| 9 | }) |
| 10 | |
| 11 | export default SalesChannel |