@creator.co/creatorco-prisma-client 1.0.86 → 1.0.88
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/edge.js +6 -5
- package/index-browser.js +1 -0
- package/index.d.ts +368 -23
- package/index.js +6 -5
- package/package.json +1 -1
- package/schema.prisma +16 -11
- package/wasm.js +1 -0
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -1086,6 +1086,7 @@ model PaymentTransaction {
|
|
|
1086
1086
|
trolleyPayments TrolleyPayment[]
|
|
1087
1087
|
|
|
1088
1088
|
@@index([accountId])
|
|
1089
|
+
@@index([accountId, creatorId, date, id(sort: Desc)])
|
|
1089
1090
|
}
|
|
1090
1091
|
|
|
1091
1092
|
/// View to get the latest PaymentTransaction for each creator where accountId equals creatorId
|
|
@@ -1295,9 +1296,10 @@ model CreatorListItem {
|
|
|
1295
1296
|
creatorList CreatorList @relation(fields: [creatorListId], references: [id], onDelete: Cascade)
|
|
1296
1297
|
socialProfile SocialProfile? @relation(fields: [socialProfileId], references: [id], onDelete: Cascade)
|
|
1297
1298
|
|
|
1298
|
-
sequenceOutboundEmails
|
|
1299
|
-
sequenceInboundEmails
|
|
1300
|
-
sequenceImapCheckpoints
|
|
1299
|
+
sequenceOutboundEmails SequenceOutboundEmail[]
|
|
1300
|
+
sequenceInboundEmails SequenceInboundEmail[]
|
|
1301
|
+
sequenceImapCheckpoints SequenceImapCheckpoint[]
|
|
1302
|
+
sequenceOutboundReplyEmail SequenceOutboundReplyEmail[]
|
|
1301
1303
|
|
|
1302
1304
|
@@unique([creatorListId, socialProfileId])
|
|
1303
1305
|
@@index([creatorListId])
|
|
@@ -1571,6 +1573,7 @@ model SequenceOutboundEmail {
|
|
|
1571
1573
|
creatorList CreatorListItem @relation(fields: [creatorListItemId], references: [id])
|
|
1572
1574
|
sequenceStep SequenceStep @relation(fields: [sequenceStepId], references: [id])
|
|
1573
1575
|
|
|
1576
|
+
@@index([sequenceId, creatorListItemId])
|
|
1574
1577
|
@@map("sequenceoutboundemail")
|
|
1575
1578
|
}
|
|
1576
1579
|
|
|
@@ -1860,15 +1863,17 @@ model EmailTracking {
|
|
|
1860
1863
|
}
|
|
1861
1864
|
|
|
1862
1865
|
model SequenceOutboundReplyEmail {
|
|
1863
|
-
id
|
|
1864
|
-
sequenceId
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1866
|
+
id Int @id @default(autoincrement()) // Auto-increment ID
|
|
1867
|
+
sequenceId Int // Foreign key to Sequence model
|
|
1868
|
+
listItemId Int? // Foreign key for ListItem
|
|
1869
|
+
type Int // Type of the email (1 for Gmail, 2 for Outlook)
|
|
1870
|
+
typeId String // threadId for Gmail, conversationId for Outlook
|
|
1871
|
+
replyCount Int @default(0)
|
|
1872
|
+
createdAt DateTime @default(now()) // Timestamp when the record is created
|
|
1873
|
+
updatedAt DateTime @updatedAt // Timestamp for when the record is updated
|
|
1870
1874
|
// Relations with other models
|
|
1871
|
-
|
|
1875
|
+
creatorListItem CreatorListItem? @relation(fields: [listItemId], references: [id])
|
|
1876
|
+
sequence Sequence @relation(fields: [sequenceId], references: [id])
|
|
1872
1877
|
|
|
1873
1878
|
@@map("sequenceoutboundreplyemail") // Custom table name
|
|
1874
1879
|
}
|
package/wasm.js
CHANGED
|
@@ -1181,6 +1181,7 @@ exports.Prisma.EmailTrackingScalarFieldEnum = {
|
|
|
1181
1181
|
exports.Prisma.SequenceOutboundReplyEmailScalarFieldEnum = {
|
|
1182
1182
|
id: 'id',
|
|
1183
1183
|
sequenceId: 'sequenceId',
|
|
1184
|
+
listItemId: 'listItemId',
|
|
1184
1185
|
type: 'type',
|
|
1185
1186
|
typeId: 'typeId',
|
|
1186
1187
|
replyCount: 'replyCount',
|