@creator.co/creatorco-prisma-client 1.0.61-alpha-8d6ef3c → 1.0.61-alpha-b23a5b2

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
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "./*": "./*"
81
81
  },
82
- "version": "1.0.61-alpha-8d6ef3c",
82
+ "version": "1.0.61-alpha-b23a5b2",
83
83
  "sideEffects": false,
84
84
  "description": "Prisma client for creatorco Database"
85
85
  }
package/schema.prisma CHANGED
@@ -360,12 +360,11 @@ model Brand {
360
360
 
361
361
  // for agencies
362
362
  parentBrandId Int?
363
- parentBrand Brand? @relation("ChildBrands", fields: [parentBrandId], references: [id])
364
- childBrands Brand[] @relation("ChildBrands")
363
+ parentBrand Brand? @relation("ChildBrands", fields: [parentBrandId], references: [id])
364
+ childBrands Brand[] @relation("ChildBrands")
365
365
  // generated (for search)
366
- searchName String? @default(dbgenerated())
367
- smtpCredentials SMTPCredentials[]
368
- imapCredentials IMAPCredentials[]
366
+ searchName String? @default(dbgenerated())
367
+ smtpCredentials EmailCredentials[]
369
368
 
370
369
  @@map("brand")
371
370
  }
@@ -1418,6 +1417,8 @@ model Sequence {
1418
1417
  brandId Int
1419
1418
  enabled Boolean @default(false)
1420
1419
 
1420
+ emailCredentialsId Int
1421
+
1421
1422
  campaign Campaign @relation(fields: [campaignId], references: [id])
1422
1423
  creatorList CreatorList @relation(fields: [creatorListId], references: [id])
1423
1424
  brand Brand @relation(fields: [brandId], references: [id])
@@ -1427,6 +1428,8 @@ model Sequence {
1427
1428
  inboundEmails SequenceInboundEmail[]
1428
1429
  imapCheckpoints SequenceImapCheckpoint[]
1429
1430
 
1431
+ emailCredentials EmailCredentials @relation(fields: [emailCredentialsId], references: [id])
1432
+
1430
1433
  @@map("sequence")
1431
1434
  }
1432
1435
 
@@ -1630,31 +1633,29 @@ model BrandContract {
1630
1633
  @@map("brand_contract")
1631
1634
  }
1632
1635
 
1633
- model SMTPCredentials {
1634
- id Int @id @default(autoincrement())
1635
- host String
1636
- user String
1637
- password String
1638
- senderName String
1639
- emailAddress String
1640
- portNumber Int
1641
- metaData Json @default("{}")
1636
+ model EmailCredentials {
1637
+ id Int @id @default(autoincrement())
1638
+ smtpHost String @map("smtp_host")
1639
+ smtpUser String @map("smtp_user")
1640
+ smtpPassword String @map("smtp_password")
1641
+ smtpSenderName String @map("smtp_sender_name")
1642
+ smtpSenderEmail String @map("smtp_sender_email")
1643
+ smtpReplyToEmail String @map("smtp_reply_to_email")
1644
+ smtpPort Int @map("smtp_port")
1642
1645
 
1643
- brandId Int
1644
-
1645
- brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
1646
- }
1646
+ imapHost String @map("imap_host")
1647
+ imapUser String @map("imap_user")
1648
+ imapPassword String @map("imap_password")
1649
+ imapPort Int @map("imap_port")
1650
+ imapIsSecure Boolean @map("imap_is_secure")
1647
1651
 
1648
- model IMAPCredentials {
1649
- id Int @id @default(autoincrement())
1650
- host String
1651
- user String
1652
- portNumber Int
1653
- password String
1654
- isSecure Boolean
1655
- metaData Json @default("{}")
1652
+ metaData Json @default("{}") @map("meta_data")
1656
1653
 
1657
- brandId Int
1654
+ brandId Int @map("brand_id")
1658
1655
 
1659
1656
  brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
1657
+
1658
+ sequences Sequence[]
1659
+
1660
+ @@map("email_credentials")
1660
1661
  }
package/wasm.js CHANGED
@@ -958,7 +958,8 @@ exports.Prisma.SequenceScalarFieldEnum = {
958
958
  createdAt: 'createdAt',
959
959
  completed: 'completed',
960
960
  brandId: 'brandId',
961
- enabled: 'enabled'
961
+ enabled: 'enabled',
962
+ emailCredentialsId: 'emailCredentialsId'
962
963
  };
963
964
 
964
965
  exports.Prisma.SequenceStepScalarFieldEnum = {
@@ -1072,25 +1073,20 @@ exports.Prisma.BrandContractScalarFieldEnum = {
1072
1073
  editedByUserId: 'editedByUserId'
1073
1074
  };
1074
1075
 
1075
- exports.Prisma.SMTPCredentialsScalarFieldEnum = {
1076
- id: 'id',
1077
- host: 'host',
1078
- user: 'user',
1079
- password: 'password',
1080
- senderName: 'senderName',
1081
- emailAddress: 'emailAddress',
1082
- portNumber: 'portNumber',
1083
- metaData: 'metaData',
1084
- brandId: 'brandId'
1085
- };
1086
-
1087
- exports.Prisma.IMAPCredentialsScalarFieldEnum = {
1088
- id: 'id',
1089
- host: 'host',
1090
- user: 'user',
1091
- portNumber: 'portNumber',
1092
- password: 'password',
1093
- isSecure: 'isSecure',
1076
+ exports.Prisma.EmailCredentialsScalarFieldEnum = {
1077
+ id: 'id',
1078
+ smtpHost: 'smtpHost',
1079
+ smtpUser: 'smtpUser',
1080
+ smtpPassword: 'smtpPassword',
1081
+ smtpSenderName: 'smtpSenderName',
1082
+ smtpSenderEmail: 'smtpSenderEmail',
1083
+ smtpReplyToEmail: 'smtpReplyToEmail',
1084
+ smtpPort: 'smtpPort',
1085
+ imapHost: 'imapHost',
1086
+ imapUser: 'imapUser',
1087
+ imapPassword: 'imapPassword',
1088
+ imapPort: 'imapPort',
1089
+ imapIsSecure: 'imapIsSecure',
1094
1090
  metaData: 'metaData',
1095
1091
  brandId: 'brandId'
1096
1092
  };
@@ -1511,18 +1507,16 @@ exports.Prisma.BrandContractOrderByRelevanceFieldEnum = {
1511
1507
  contractType: 'contractType'
1512
1508
  };
1513
1509
 
1514
- exports.Prisma.SMTPCredentialsOrderByRelevanceFieldEnum = {
1515
- host: 'host',
1516
- user: 'user',
1517
- password: 'password',
1518
- senderName: 'senderName',
1519
- emailAddress: 'emailAddress'
1520
- };
1521
-
1522
- exports.Prisma.IMAPCredentialsOrderByRelevanceFieldEnum = {
1523
- host: 'host',
1524
- user: 'user',
1525
- password: 'password'
1510
+ exports.Prisma.EmailCredentialsOrderByRelevanceFieldEnum = {
1511
+ smtpHost: 'smtpHost',
1512
+ smtpUser: 'smtpUser',
1513
+ smtpPassword: 'smtpPassword',
1514
+ smtpSenderName: 'smtpSenderName',
1515
+ smtpSenderEmail: 'smtpSenderEmail',
1516
+ smtpReplyToEmail: 'smtpReplyToEmail',
1517
+ imapHost: 'imapHost',
1518
+ imapUser: 'imapUser',
1519
+ imapPassword: 'imapPassword'
1526
1520
  };
1527
1521
  exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
1528
1522
  optIn: 'optIn',
@@ -1631,8 +1625,7 @@ exports.Prisma.ModelName = {
1631
1625
  ShopifySale: 'ShopifySale',
1632
1626
  CreatorFlag: 'CreatorFlag',
1633
1627
  BrandContract: 'BrandContract',
1634
- SMTPCredentials: 'SMTPCredentials',
1635
- IMAPCredentials: 'IMAPCredentials'
1628
+ EmailCredentials: 'EmailCredentials'
1636
1629
  };
1637
1630
 
1638
1631
  /**