Przeglądaj źródła

fix: update adId field in Ads model to be non-nullable

Dave 1 miesiąc temu
rodzic
commit
9bf4d20069
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      prisma/mongo/schema/ads.prisma

+ 1 - 1
prisma/mongo/schema/ads.prisma

@@ -1,6 +1,6 @@
 model Ads {
   id           String     @id @map("_id") @default(auto()) @db.ObjectId
-  adId         Int?        @unique
+  adId         Int        @unique
   adType       AdType     // Redis key & module type
   advertiser   String     // 广告商 (业务上限制 max 20 字符)
   title        String     // 标题 (业务上限制 max 20 字符)