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
@@ -2,7 +2,7 @@ import { model } from "@medusajs/utils"
import { Notification } from "./notification"
export const NotificationProvider = model.define("notificationProvider", {
id: model.id({ prefix: "notpro" }),
id: model.id({ prefix: "notpro" }).primaryKey(),
handle: model.text(),
name: model.text(),
is_enabled: model.boolean().default(true),