@creator.co/creatorco-prisma-client 1.0.20 → 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/schema.prisma CHANGED
@@ -341,6 +341,7 @@ model Brand {
341
341
  creatorsearchfilter CreatorSearchFilter[]
342
342
  sequences Sequence[]
343
343
  impactRadiusEvents ImpactRadiusEvent[]
344
+ shopifyStores ShopifyStore[]
344
345
 
345
346
  // for agencies
346
347
  parentBrandId Int?
@@ -517,6 +518,7 @@ model Campaign {
517
518
  campaignPins CampaignPin[]
518
519
  socialPosts SocialPost[]
519
520
  campaignInvites CampaignInvite[]
521
+ shopifyProducts ShopifyProduct[]
520
522
 
521
523
  brandId Int
522
524
  brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
@@ -1219,4 +1221,43 @@ model SequenceImapCheckpoint {
1219
1221
 
1220
1222
  @@id([sequenceId, creatorListItemId])
1221
1223
  @@map("sequenceimapcheckpoint")
1224
+ }
1225
+
1226
+ model ShopifyStore {
1227
+ id Int @id @default(autoincrement())
1228
+ shopifyId String? @unique @map("shopify_id")
1229
+ name String?
1230
+ url String
1231
+ accessToken String @map("access_token")
1232
+ metaData Json @default("{}") @map("meta_data")
1233
+
1234
+ brandId Int @map("brand_id")
1235
+
1236
+ products ShopifyProduct[]
1237
+
1238
+ brand Brand? @relation(fields: [brandId], references: [id])
1239
+
1240
+ @@map("shopify_store")
1241
+ }
1242
+ model ShopifyProduct {
1243
+ id Int @id @default(autoincrement())
1244
+ shopifyId String @unique @map("shopify_id")
1245
+ title String
1246
+ handle String
1247
+ createdAt DateTime? @map("created_at")
1248
+ updatedAt DateTime? @map("updated_at")
1249
+
1250
+ tags String? @db.Text
1251
+ status String?
1252
+ metaData Json @default("{}") @map("meta_data")
1253
+
1254
+ lastSynced DateTime @default(now()) @map("last_synced")
1255
+
1256
+ shopifyStoreId Int @map("shopify_store_id")
1257
+
1258
+ campaigns Campaign[]
1259
+
1260
+ shopifyStore ShopifyStore @relation(fields: [shopifyStoreId], references: [id])
1261
+
1262
+ @@map("shopify_product")
1222
1263
  }
package/wasm.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './index'