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

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.19",
71
+ "version": "1.0.20-alpha-995a7a0",
72
72
  "sideEffects": false,
73
73
  "description": "Prisma client for creatorco Database"
74
74
  }
package/schema.prisma CHANGED
@@ -69,7 +69,8 @@ model User {
69
69
  socialProfiles SocialProfile[]
70
70
  rakutenActivity RakutenActivity[]
71
71
  impactRadiusEvents ImpactRadiusEvent[]
72
-
72
+
73
+ @@index([phoneCode, phone])
73
74
  @@map("user")
74
75
  // @@fulltext([firstName, lastName])
75
76
  }
@@ -340,6 +341,7 @@ model Brand {
340
341
  creatorsearchfilter CreatorSearchFilter[]
341
342
  sequences Sequence[]
342
343
  impactRadiusEvents ImpactRadiusEvent[]
344
+ shopifyStores ShopifyStore[]
343
345
 
344
346
  // for agencies
345
347
  parentBrandId Int?
@@ -696,6 +698,7 @@ model OptIn {
696
698
  chat Chat?
697
699
  campaignInvites CampaignInvite[]
698
700
  trolleyPayments TrolleyPayment[]
701
+ affiliateClicks AffiliateClick[]
699
702
 
700
703
  @@index([userId])
701
704
  @@index([campaignId])
@@ -895,10 +898,12 @@ model AffiliateClick {
895
898
  id Int @id @default(autoincrement())
896
899
  created DateTime @default(now())
897
900
  visitorIp String?
901
+ optInId Int
898
902
  metaData Json @default("{}")
899
903
 
900
904
  affiliateLinkId Int
901
905
 
906
+ optin OptIn @relation(fields: [optInId], references: [id])
902
907
  affiliateLink AffiliateLink @relation(fields: [affiliateLinkId], references: [id])
903
908
  affiliateEvent AffiliateEvent[]
904
909
  }
@@ -1215,4 +1220,43 @@ model SequenceImapCheckpoint {
1215
1220
 
1216
1221
  @@id([sequenceId, creatorListItemId])
1217
1222
  @@map("sequenceimapcheckpoint")
1223
+ }
1224
+
1225
+ model ShopifyStore {
1226
+ id Int @id @default(autoincrement())
1227
+ shopifyId String @unique
1228
+ name String
1229
+ url String
1230
+ accessToken String
1231
+ metaData Json @default("{}")
1232
+
1233
+ brandId Int
1234
+
1235
+ products ShopifyProduct[]
1236
+
1237
+ brand Brand @relation(fields: [brandId], references: [id])
1238
+
1239
+ @@map("shopify_store")
1240
+ }
1241
+ model ShopifyProduct {
1242
+ id Int @id @default(autoincrement())
1243
+ shopifyId String @unique
1244
+ title String
1245
+ handle String
1246
+ createdAt DateTime?
1247
+ updatedAt DateTime?
1248
+
1249
+ description String? @db.Text
1250
+ price Float
1251
+ tags String? @db.Text
1252
+ status String
1253
+ metaData Json @default("{}")
1254
+
1255
+ lastSynced DateTime @default(now())
1256
+
1257
+ shopifyStoreId Int
1258
+
1259
+ shopifyStore ShopifyStore @relation(fields: [shopifyStoreId], references: [id])
1260
+
1261
+ @@map("shopify_product")
1218
1262
  }
package/wasm.js CHANGED
@@ -633,6 +633,7 @@ exports.Prisma.AffiliateClickScalarFieldEnum = {
633
633
  id: 'id',
634
634
  created: 'created',
635
635
  visitorIp: 'visitorIp',
636
+ optInId: 'optInId',
636
637
  metaData: 'metaData',
637
638
  affiliateLinkId: 'affiliateLinkId'
638
639
  };
@@ -835,6 +836,32 @@ exports.Prisma.SequenceImapCheckpointScalarFieldEnum = {
835
836
  updatedAt: 'updatedAt'
836
837
  };
837
838
 
839
+ exports.Prisma.ShopifyStoreScalarFieldEnum = {
840
+ id: 'id',
841
+ shopifyId: 'shopifyId',
842
+ name: 'name',
843
+ url: 'url',
844
+ accessToken: 'accessToken',
845
+ metaData: 'metaData',
846
+ brandId: 'brandId'
847
+ };
848
+
849
+ exports.Prisma.ShopifyProductScalarFieldEnum = {
850
+ id: 'id',
851
+ shopifyId: 'shopifyId',
852
+ title: 'title',
853
+ handle: 'handle',
854
+ createdAt: 'createdAt',
855
+ updatedAt: 'updatedAt',
856
+ description: 'description',
857
+ price: 'price',
858
+ tags: 'tags',
859
+ status: 'status',
860
+ metaData: 'metaData',
861
+ lastSynced: 'lastSynced',
862
+ shopifyStoreId: 'shopifyStoreId'
863
+ };
864
+
838
865
  exports.Prisma.SortOrder = {
839
866
  asc: 'asc',
840
867
  desc: 'desc'
@@ -1161,6 +1188,22 @@ exports.Prisma.SequenceOrderByRelevanceFieldEnum = {
1161
1188
  exports.Prisma.SequenceInboundEmailOrderByRelevanceFieldEnum = {
1162
1189
  msgHash: 'msgHash'
1163
1190
  };
1191
+
1192
+ exports.Prisma.ShopifyStoreOrderByRelevanceFieldEnum = {
1193
+ shopifyId: 'shopifyId',
1194
+ name: 'name',
1195
+ url: 'url',
1196
+ accessToken: 'accessToken'
1197
+ };
1198
+
1199
+ exports.Prisma.ShopifyProductOrderByRelevanceFieldEnum = {
1200
+ shopifyId: 'shopifyId',
1201
+ title: 'title',
1202
+ handle: 'handle',
1203
+ description: 'description',
1204
+ tags: 'tags',
1205
+ status: 'status'
1206
+ };
1164
1207
  exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
1165
1208
  optIn: 'optIn',
1166
1209
  tip: 'tip',
@@ -1235,7 +1278,9 @@ exports.Prisma.ModelName = {
1235
1278
  SequenceStep: 'SequenceStep',
1236
1279
  SequenceOutboundEmail: 'SequenceOutboundEmail',
1237
1280
  SequenceInboundEmail: 'SequenceInboundEmail',
1238
- SequenceImapCheckpoint: 'SequenceImapCheckpoint'
1281
+ SequenceImapCheckpoint: 'SequenceImapCheckpoint',
1282
+ ShopifyStore: 'ShopifyStore',
1283
+ ShopifyProduct: 'ShopifyProduct'
1239
1284
  };
1240
1285
 
1241
1286
  /**