Mark keys as primary with explicit method call (#7900)
This commit is contained in:
1 parent
b25c6ab54f
commit
074e4a888e
13 files changed
+239
-438
No files matched your search
@@ -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