@creator.co/creatorco-prisma-client 1.0.61-alpha-8d6ef3c → 1.0.61
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 +26 -40
- package/index-browser.js +22 -36
- package/index.d.ts +2535 -2820
- package/index.js +26 -40
- package/package.json +1 -1
- package/schema.prisma +31 -29
- package/wasm.js +22 -36
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -79,6 +79,9 @@ model User {
|
|
|
79
79
|
contractsCreated BrandContract[] @relation("UserCreatedContract") // contracts created by the user
|
|
80
80
|
contractsEdited BrandContract[] @relation("UserEditedContract") // contracts edited by the user
|
|
81
81
|
|
|
82
|
+
filesCreated File[] @relation("UserCreatedFile") // files created by the user
|
|
83
|
+
filesEdited File[] @relation("UserEditedFile") // files edited by the user
|
|
84
|
+
|
|
82
85
|
fullName String? @default(dbgenerated())
|
|
83
86
|
phoneNormalised String? @default(dbgenerated())
|
|
84
87
|
|
|
@@ -357,15 +360,14 @@ model Brand {
|
|
|
357
360
|
shopifyStores ShopifyStore[]
|
|
358
361
|
productLists ProductList[]
|
|
359
362
|
brandContracts BrandContract[]
|
|
363
|
+
files File[]
|
|
360
364
|
|
|
361
365
|
// for agencies
|
|
362
|
-
parentBrandId
|
|
363
|
-
parentBrand
|
|
364
|
-
childBrands
|
|
366
|
+
parentBrandId Int?
|
|
367
|
+
parentBrand Brand? @relation("ChildBrands", fields: [parentBrandId], references: [id])
|
|
368
|
+
childBrands Brand[] @relation("ChildBrands")
|
|
365
369
|
// generated (for search)
|
|
366
|
-
searchName
|
|
367
|
-
smtpCredentials SMTPCredentials[]
|
|
368
|
-
imapCredentials IMAPCredentials[]
|
|
370
|
+
searchName String? @default(dbgenerated())
|
|
369
371
|
|
|
370
372
|
@@map("brand")
|
|
371
373
|
}
|
|
@@ -1613,7 +1615,9 @@ model BrandContract {
|
|
|
1613
1615
|
createdAt DateTime @default(now()) @map("created_at")
|
|
1614
1616
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1615
1617
|
|
|
1616
|
-
|
|
1618
|
+
fileId String? @unique @map("file_id")
|
|
1619
|
+
file File? @relation(fields: [fileId], references: [id])
|
|
1620
|
+
|
|
1617
1621
|
contractType String @map("contract_type")
|
|
1618
1622
|
startDate DateTime @map("start_date")
|
|
1619
1623
|
endDate DateTime? @map("end_date")
|
|
@@ -1630,31 +1634,29 @@ model BrandContract {
|
|
|
1630
1634
|
@@map("brand_contract")
|
|
1631
1635
|
}
|
|
1632
1636
|
|
|
1633
|
-
model
|
|
1634
|
-
id
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
password String
|
|
1638
|
-
senderName String
|
|
1639
|
-
emailAddress String
|
|
1640
|
-
portNumber Int
|
|
1641
|
-
metaData Json @default("{}")
|
|
1637
|
+
model File {
|
|
1638
|
+
id String @id @default(uuid())
|
|
1639
|
+
brandId Int @map("brand_id")
|
|
1640
|
+
brand Brand @relation(fields: [brandId], references: [id], onDelete: Cascade)
|
|
1642
1641
|
|
|
1643
|
-
|
|
1642
|
+
name String
|
|
1643
|
+
description String?
|
|
1644
|
+
status Int
|
|
1645
|
+
md5 String
|
|
1646
|
+
type String
|
|
1647
|
+
size Int
|
|
1644
1648
|
|
|
1645
|
-
|
|
1646
|
-
|
|
1649
|
+
createdByUserId Int @map("created_by_user_id")
|
|
1650
|
+
createdByUser User @relation("UserCreatedFile", fields: [createdByUserId], references: [id])
|
|
1647
1651
|
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
host String
|
|
1651
|
-
user String
|
|
1652
|
-
portNumber Int
|
|
1653
|
-
password String
|
|
1654
|
-
isSecure Boolean
|
|
1655
|
-
metaData Json @default("{}")
|
|
1652
|
+
editedByUserId Int? @map("edited_by_user_id")
|
|
1653
|
+
editedByUser User? @relation("UserEditedFile", fields: [editedByUserId], references: [id])
|
|
1656
1654
|
|
|
1657
|
-
|
|
1655
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
1656
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
1657
|
+
archivedAt DateTime? @map("archived_at")
|
|
1658
1658
|
|
|
1659
|
-
|
|
1659
|
+
brandContract BrandContract?
|
|
1660
|
+
|
|
1661
|
+
@@index([brandId])
|
|
1660
1662
|
}
|
package/wasm.js
CHANGED
|
@@ -1063,7 +1063,7 @@ exports.Prisma.BrandContractScalarFieldEnum = {
|
|
|
1063
1063
|
brandId: 'brandId',
|
|
1064
1064
|
createdAt: 'createdAt',
|
|
1065
1065
|
updatedAt: 'updatedAt',
|
|
1066
|
-
|
|
1066
|
+
fileId: 'fileId',
|
|
1067
1067
|
contractType: 'contractType',
|
|
1068
1068
|
startDate: 'startDate',
|
|
1069
1069
|
endDate: 'endDate',
|
|
@@ -1072,27 +1072,20 @@ exports.Prisma.BrandContractScalarFieldEnum = {
|
|
|
1072
1072
|
editedByUserId: 'editedByUserId'
|
|
1073
1073
|
};
|
|
1074
1074
|
|
|
1075
|
-
exports.Prisma.
|
|
1075
|
+
exports.Prisma.FileScalarFieldEnum = {
|
|
1076
1076
|
id: 'id',
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
host: 'host',
|
|
1090
|
-
user: 'user',
|
|
1091
|
-
portNumber: 'portNumber',
|
|
1092
|
-
password: 'password',
|
|
1093
|
-
isSecure: 'isSecure',
|
|
1094
|
-
metaData: 'metaData',
|
|
1095
|
-
brandId: 'brandId'
|
|
1077
|
+
brandId: 'brandId',
|
|
1078
|
+
name: 'name',
|
|
1079
|
+
description: 'description',
|
|
1080
|
+
status: 'status',
|
|
1081
|
+
md5: 'md5',
|
|
1082
|
+
type: 'type',
|
|
1083
|
+
size: 'size',
|
|
1084
|
+
createdByUserId: 'createdByUserId',
|
|
1085
|
+
editedByUserId: 'editedByUserId',
|
|
1086
|
+
createdAt: 'createdAt',
|
|
1087
|
+
updatedAt: 'updatedAt',
|
|
1088
|
+
archivedAt: 'archivedAt'
|
|
1096
1089
|
};
|
|
1097
1090
|
|
|
1098
1091
|
exports.Prisma.SortOrder = {
|
|
@@ -1507,22 +1500,16 @@ exports.Prisma.CreatorFlagOrderByRelevanceFieldEnum = {
|
|
|
1507
1500
|
};
|
|
1508
1501
|
|
|
1509
1502
|
exports.Prisma.BrandContractOrderByRelevanceFieldEnum = {
|
|
1510
|
-
|
|
1503
|
+
fileId: 'fileId',
|
|
1511
1504
|
contractType: 'contractType'
|
|
1512
1505
|
};
|
|
1513
1506
|
|
|
1514
|
-
exports.Prisma.
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
};
|
|
1521
|
-
|
|
1522
|
-
exports.Prisma.IMAPCredentialsOrderByRelevanceFieldEnum = {
|
|
1523
|
-
host: 'host',
|
|
1524
|
-
user: 'user',
|
|
1525
|
-
password: 'password'
|
|
1507
|
+
exports.Prisma.FileOrderByRelevanceFieldEnum = {
|
|
1508
|
+
id: 'id',
|
|
1509
|
+
name: 'name',
|
|
1510
|
+
description: 'description',
|
|
1511
|
+
md5: 'md5',
|
|
1512
|
+
type: 'type'
|
|
1526
1513
|
};
|
|
1527
1514
|
exports.trolleyPaymentType = exports.$Enums.trolleyPaymentType = {
|
|
1528
1515
|
optIn: 'optIn',
|
|
@@ -1631,8 +1618,7 @@ exports.Prisma.ModelName = {
|
|
|
1631
1618
|
ShopifySale: 'ShopifySale',
|
|
1632
1619
|
CreatorFlag: 'CreatorFlag',
|
|
1633
1620
|
BrandContract: 'BrandContract',
|
|
1634
|
-
|
|
1635
|
-
IMAPCredentials: 'IMAPCredentials'
|
|
1621
|
+
File: 'File'
|
|
1636
1622
|
};
|
|
1637
1623
|
|
|
1638
1624
|
/**
|