@creator.co/creatorco-prisma-client 1.0.89 → 1.0.91

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.89",
95
+ "version": "1.0.91",
96
96
  "sideEffects": false,
97
97
  "description": "Prisma client for creatorco Database"
98
98
  }
package/schema.prisma CHANGED
@@ -1416,12 +1416,13 @@ enum SocialProfileContactSource {
1416
1416
  }
1417
1417
 
1418
1418
  model SocialProfileContact {
1419
- type String
1420
- value String
1421
- source SocialProfileContactSource @default(MANUAL)
1422
- metaData Json? @default("{}") @map("meta_data")
1423
- createdAt DateTime? @default(now())
1424
- updatedAt DateTime? @updatedAt
1419
+ type String
1420
+ value String
1421
+ source SocialProfileContactSource @default(MANUAL)
1422
+ unsubscribe String[] @default([])
1423
+ metaData Json? @default("{}") @map("meta_data")
1424
+ createdAt DateTime? @default(now())
1425
+ updatedAt DateTime? @updatedAt
1425
1426
 
1426
1427
  socialProfileId Int @map("social_profile_id")
1427
1428
 
@@ -1939,3 +1940,19 @@ model SequenceOutboundReplyEmail {
1939
1940
 
1940
1941
  @@map("sequenceoutboundreplyemail") // Custom table name
1941
1942
  }
1943
+
1944
+ model LLMPrompt {
1945
+ id String @id @default(uuid())
1946
+ collectionName String // Logical identifier for the LLM chain (e.g., "campaign-generation", "creator-search")
1947
+ version Int // Incremental version number, always positive and forward-moving
1948
+ steps Json // Array of objects: [{prompt: string, role: string}, ...]
1949
+ published Boolean @default(false) // Only one version per collectionId can be published
1950
+ extraData Json @default("{}") // Additional metadata for future extensibility
1951
+ editorUserId Int?
1952
+ createdAt DateTime @default(now()) @map("created_at")
1953
+ updatedAt DateTime @updatedAt @map("updated_at")
1954
+
1955
+ @@unique([collectionName, version]) // Ensure unique version per collection
1956
+ @@index([collectionName, published]) // Index for finding published versions
1957
+ @@map("llm_prompt")
1958
+ }
package/wasm.js CHANGED
@@ -910,6 +910,7 @@ exports.Prisma.SocialProfileContactScalarFieldEnum = {
910
910
  type: 'type',
911
911
  value: 'value',
912
912
  source: 'source',
913
+ unsubscribe: 'unsubscribe',
913
914
  metaData: 'metaData',
914
915
  createdAt: 'createdAt',
915
916
  updatedAt: 'updatedAt',
@@ -1223,6 +1224,18 @@ exports.Prisma.SequenceOutboundReplyEmailScalarFieldEnum = {
1223
1224
  updatedAt: 'updatedAt'
1224
1225
  };
1225
1226
 
1227
+ exports.Prisma.LLMPromptScalarFieldEnum = {
1228
+ id: 'id',
1229
+ collectionName: 'collectionName',
1230
+ version: 'version',
1231
+ steps: 'steps',
1232
+ published: 'published',
1233
+ extraData: 'extraData',
1234
+ editorUserId: 'editorUserId',
1235
+ createdAt: 'createdAt',
1236
+ updatedAt: 'updatedAt'
1237
+ };
1238
+
1226
1239
  exports.Prisma.LatestCreatorPaymentTransactionScalarFieldEnum = {
1227
1240
  id: 'id',
1228
1241
  balance: 'balance',
@@ -1598,7 +1611,8 @@ exports.Prisma.SocialProfileOrderByRelevanceFieldEnum = {
1598
1611
 
1599
1612
  exports.Prisma.SocialProfileContactOrderByRelevanceFieldEnum = {
1600
1613
  type: 'type',
1601
- value: 'value'
1614
+ value: 'value',
1615
+ unsubscribe: 'unsubscribe'
1602
1616
  };
1603
1617
 
1604
1618
  exports.Prisma.MessageTemplateOrderByRelevanceFieldEnum = {
@@ -1726,6 +1740,11 @@ exports.Prisma.SequenceOutboundReplyEmailOrderByRelevanceFieldEnum = {
1726
1740
  typeId: 'typeId'
1727
1741
  };
1728
1742
 
1743
+ exports.Prisma.LLMPromptOrderByRelevanceFieldEnum = {
1744
+ id: 'id',
1745
+ collectionName: 'collectionName'
1746
+ };
1747
+
1729
1748
  exports.Prisma.LatestCreatorPaymentTransactionOrderByRelevanceFieldEnum = {
1730
1749
  type: 'type',
1731
1750
  notes: 'notes'
@@ -1884,6 +1903,7 @@ exports.Prisma.ModelName = {
1884
1903
  EmailProvider: 'EmailProvider',
1885
1904
  EmailTracking: 'EmailTracking',
1886
1905
  SequenceOutboundReplyEmail: 'SequenceOutboundReplyEmail',
1906
+ LLMPrompt: 'LLMPrompt',
1887
1907
  LatestCreatorPaymentTransaction: 'LatestCreatorPaymentTransaction',
1888
1908
  SocialPostAnalytics: 'SocialPostAnalytics'
1889
1909
  };