@creator.co/creatorco-prisma-client 1.0.20-alpha-995a7a0 → 1.0.21-alpha-f0d1b14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "./*": "./*"
70
70
  },
71
- "version": "1.0.20-alpha-995a7a0",
71
+ "version": "1.0.21-alpha-f0d1b14",
72
72
  "sideEffects": false,
73
73
  "description": "Prisma client for creatorco Database"
74
74
  }
package/schema.prisma CHANGED
@@ -518,6 +518,7 @@ model Campaign {
518
518
  campaignPins CampaignPin[]
519
519
  socialPosts SocialPost[]
520
520
  campaignInvites CampaignInvite[]
521
+ shopifyProducts ShopifyProduct[]
521
522
 
522
523
  brandId Int
523
524
  brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
@@ -1224,37 +1225,37 @@ model SequenceImapCheckpoint {
1224
1225
 
1225
1226
  model ShopifyStore {
1226
1227
  id Int @id @default(autoincrement())
1227
- shopifyId String @unique
1228
- name String
1228
+ shopifyId String? @unique @map("shopify_id")
1229
+ name String?
1229
1230
  url String
1230
- accessToken String
1231
- metaData Json @default("{}")
1231
+ accessToken String @map("access_token")
1232
+ metaData Json @default("{}") @map("meta_data")
1232
1233
 
1233
- brandId Int
1234
+ brandId Int @map("brand_id")
1234
1235
 
1235
1236
  products ShopifyProduct[]
1236
1237
 
1237
- brand Brand @relation(fields: [brandId], references: [id])
1238
+ brand Brand? @relation(fields: [brandId], references: [id])
1238
1239
 
1239
1240
  @@map("shopify_store")
1240
1241
  }
1241
1242
  model ShopifyProduct {
1242
- id Int @id @default(autoincrement())
1243
- shopifyId String @unique
1243
+ id Int @id @default(autoincrement())
1244
+ shopifyId String @unique @map("shopify_id")
1244
1245
  title String
1245
1246
  handle String
1246
- createdAt DateTime?
1247
- updatedAt DateTime?
1247
+ createdAt DateTime? @map("created_at")
1248
+ updatedAt DateTime? @map("updated_at")
1248
1249
 
1249
- description String? @db.Text
1250
- price Float
1251
- tags String? @db.Text
1252
- status String
1253
- metaData Json @default("{}")
1250
+ tags String? @db.Text
1251
+ status String?
1252
+ metaData Json @default("{}") @map("meta_data")
1254
1253
 
1255
- lastSynced DateTime @default(now())
1254
+ lastSynced DateTime @default(now()) @map("last_synced")
1256
1255
 
1257
- shopifyStoreId Int
1256
+ shopifyStoreId Int @map("shopify_store_id")
1257
+
1258
+ campaigns Campaign[]
1258
1259
 
1259
1260
  shopifyStore ShopifyStore @relation(fields: [shopifyStoreId], references: [id])
1260
1261
 
package/wasm.js CHANGED
@@ -853,8 +853,6 @@ exports.Prisma.ShopifyProductScalarFieldEnum = {
853
853
  handle: 'handle',
854
854
  createdAt: 'createdAt',
855
855
  updatedAt: 'updatedAt',
856
- description: 'description',
857
- price: 'price',
858
856
  tags: 'tags',
859
857
  status: 'status',
860
858
  metaData: 'metaData',
@@ -1200,7 +1198,6 @@ exports.Prisma.ShopifyProductOrderByRelevanceFieldEnum = {
1200
1198
  shopifyId: 'shopifyId',
1201
1199
  title: 'title',
1202
1200
  handle: 'handle',
1203
- description: 'description',
1204
1201
  tags: 'tags',
1205
1202
  status: 'status'
1206
1203
  };