@creator.co/creatorco-prisma-client 1.0.81 → 1.0.82-alpha-bd13b4c

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
@@ -92,7 +92,7 @@
92
92
  },
93
93
  "./*": "./*"
94
94
  },
95
- "version": "1.0.81",
95
+ "version": "1.0.82-alpha-bd13b4c",
96
96
  "sideEffects": false,
97
97
  "description": "Prisma client for creatorco Database"
98
98
  }
package/schema.prisma CHANGED
@@ -1305,16 +1305,38 @@ model SocialProfile {
1305
1305
  created DateTime @default(now())
1306
1306
  updated DateTime?
1307
1307
 
1308
- creatorListItems CreatorListItem[]
1309
- campaignInvites CampaignInvite[]
1310
- user User? @relation(fields: [userId], references: [id])
1311
- creditRefundBatches CreditRefundBatch[]
1308
+ creatorListItems CreatorListItem[]
1309
+ campaignInvites CampaignInvite[]
1310
+ user User? @relation(fields: [userId], references: [id])
1311
+ creditRefundBatches CreditRefundBatch[]
1312
+ socialProfileContacts SocialProfileContact[]
1312
1313
 
1313
1314
  @@index(username)
1314
1315
  @@index(userId)
1315
1316
  @@map("socialprofile")
1316
1317
  }
1317
1318
 
1319
+ enum SocialProfileContactSource {
1320
+ MANUAL
1321
+ IMAI
1322
+ }
1323
+
1324
+ model SocialProfileContact {
1325
+ id Int @id @default(autoincrement())
1326
+ type String
1327
+ value String
1328
+ source SocialProfileContactSource @default(MANUAL)
1329
+ metaData Json? @default("{}") @map("meta_data")
1330
+ createdAt DateTime? @default(now())
1331
+ updatedAt DateTime? @updatedAt
1332
+
1333
+ socialProfileId Int @map("social_profile_id")
1334
+
1335
+ socialProfile SocialProfile @relation(fields: [socialProfileId], references: [id], onDelete: Cascade)
1336
+
1337
+ @@map("social_profile_contact")
1338
+ }
1339
+
1318
1340
  model MessageTemplate {
1319
1341
  id Int @id @default(autoincrement())
1320
1342
  label String?
package/wasm.js CHANGED
@@ -870,6 +870,17 @@ exports.Prisma.SocialProfileScalarFieldEnum = {
870
870
  updated: 'updated'
871
871
  };
872
872
 
873
+ exports.Prisma.SocialProfileContactScalarFieldEnum = {
874
+ id: 'id',
875
+ type: 'type',
876
+ value: 'value',
877
+ source: 'source',
878
+ metaData: 'metaData',
879
+ createdAt: 'createdAt',
880
+ updatedAt: 'updatedAt',
881
+ socialProfileId: 'socialProfileId'
882
+ };
883
+
873
884
  exports.Prisma.MessageTemplateScalarFieldEnum = {
874
885
  id: 'id',
875
886
  label: 'label',
@@ -1523,6 +1534,11 @@ exports.Prisma.SocialProfileOrderByRelevanceFieldEnum = {
1523
1534
  visibility: 'visibility'
1524
1535
  };
1525
1536
 
1537
+ exports.Prisma.SocialProfileContactOrderByRelevanceFieldEnum = {
1538
+ type: 'type',
1539
+ value: 'value'
1540
+ };
1541
+
1526
1542
  exports.Prisma.MessageTemplateOrderByRelevanceFieldEnum = {
1527
1543
  label: 'label',
1528
1544
  template: 'template'
@@ -1673,6 +1689,11 @@ exports.CampaignToSocialPostStatus = exports.$Enums.CampaignToSocialPostStatus =
1673
1689
  declined: 'declined'
1674
1690
  };
1675
1691
 
1692
+ exports.SocialProfileContactSource = exports.$Enums.SocialProfileContactSource = {
1693
+ MANUAL: 'MANUAL',
1694
+ IMAI: 'IMAI'
1695
+ };
1696
+
1676
1697
  exports.ShopifyStoreSyncStatus = exports.$Enums.ShopifyStoreSyncStatus = {
1677
1698
  syncing: 'syncing',
1678
1699
  synced: 'synced',
@@ -1748,6 +1769,7 @@ exports.Prisma.ModelName = {
1748
1769
  CreatorList: 'CreatorList',
1749
1770
  CreatorListItem: 'CreatorListItem',
1750
1771
  SocialProfile: 'SocialProfile',
1772
+ SocialProfileContact: 'SocialProfileContact',
1751
1773
  MessageTemplate: 'MessageTemplate',
1752
1774
  EmailTemplate: 'EmailTemplate',
1753
1775
  SocialListeningList: 'SocialListeningList',