Browse Source

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

Dave 1 tháng trước cách đây
mục cha
commit
9bf4d20069
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 字符)