Mark keys as primary with explicit method call (#7900)

This commit is contained in:
Harminder Virk
2024-07-02 13:27:21 +05:30
committed by GitHub
parent b25c6ab54f
commit 074e4a888e
13 changed files with 239 additions and 438 deletions

View File

@@ -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),