Mark keys as primary with explicit method call (#7900)
This commit is contained in:
@@ -2,7 +2,7 @@ import { model } from "@medusajs/utils"
|
||||
import RegionCountry from "./country"
|
||||
|
||||
const Region = model.define("region", {
|
||||
id: model.id({ prefix: "reg" }),
|
||||
id: model.id({ prefix: "reg" }).primaryKey(),
|
||||
name: model.text().searchable(),
|
||||
currency_code: model.text().searchable(),
|
||||
automatic_taxes: model.boolean().default(true),
|
||||
|
||||
Reference in New Issue
Block a user