a lot of things
This commit is contained in:
@@ -20,7 +20,7 @@ const config: runtime.GetPrismaClientConfig = {
|
||||
"clientVersion": "7.3.0",
|
||||
"engineVersion": "9d6ad21cbbceab97458517b147a6a09ff43aa735",
|
||||
"activeProvider": "postgresql",
|
||||
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nmodel Session {\n id String @id @default(uuid())\n sessionKey String @unique @default(cuid())\n userId String\n expires DateTime\n refreshTokenGenerated Boolean @default(false)\n refreshedAt DateTime?\n invalidatedAt DateTime?\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n}\n\nmodel User {\n id String @id @default(cuid())\n roles Role[]\n permissions String?\n login String @unique\n name String?\n email String @unique\n emailVerified DateTime?\n image String?\n\n userId String @unique\n token String?\n\n sessions Session[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Role {\n id String @id @default(uuid())\n title String\n moniker String @unique // e.g. admin, super_admin, moderator\n\n permissions String\n users User[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Company {\n id String @id @default(cuid())\n name String\n\n cw_CompanyId Int @unique\n cw_Identifier String @unique\n\n credentials Credential[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel CredentialType {\n id String @id @default(cuid())\n name String @unique\n\n permissionScope String\n icon String?\n fields Json\n\n credentials Credential[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel SecureValue {\n id String @id @default(cuid())\n name String\n\n content String // Encrypted content\n hash String // Hash of the original content for integrity verification and Search\n\n credentialId String\n credential Credential @relation(fields: [credentialId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Credential {\n id String @id @default(cuid())\n name String\n\n typeId String\n type CredentialType @relation(fields: [typeId], references: [id], onDelete: Cascade)\n\n fields Json\n\n companyId String\n company Company @relation(fields: [companyId], references: [id], onDelete: Cascade)\n\n securevalues SecureValue[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n",
|
||||
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nmodel Session {\n id String @id @default(uuid())\n sessionKey String @unique @default(cuid())\n userId String\n expires DateTime\n refreshTokenGenerated Boolean @default(false)\n refreshedAt DateTime?\n invalidatedAt DateTime?\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n}\n\nmodel User {\n id String @id @default(cuid())\n roles Role[]\n permissions String?\n login String @unique\n name String?\n email String @unique\n emailVerified DateTime?\n image String?\n\n userId String @unique\n token String?\n\n sessions Session[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Role {\n id String @id @default(uuid())\n title String\n moniker String @unique // e.g. admin, super_admin, moderator\n\n permissions String\n users User[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Company {\n id String @id @default(cuid())\n name String\n\n cw_CompanyId Int @unique\n cw_Identifier String @unique\n\n credentials Credential[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel CredentialType {\n id String @id @default(cuid())\n name String @unique\n\n permissionScope String\n icon String?\n fields Json\n\n credentials Credential[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel SecureValue {\n id String @id @default(cuid())\n name String\n\n content String // Encrypted content\n hash String // Hash of the original content for integrity verification and Search\n\n credentialId String\n credential Credential @relation(fields: [credentialId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Credential {\n id String @id @default(cuid())\n name String\n notes String?\n\n typeId String\n type CredentialType @relation(fields: [typeId], references: [id], onDelete: Cascade)\n\n fields Json\n\n companyId String\n company Company @relation(fields: [companyId], references: [id], onDelete: Cascade)\n\n securevalues SecureValue[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n",
|
||||
"runtimeDataModel": {
|
||||
"models": {},
|
||||
"enums": {},
|
||||
@@ -28,7 +28,7 @@ const config: runtime.GetPrismaClientConfig = {
|
||||
}
|
||||
}
|
||||
|
||||
config.runtimeDataModel = JSON.parse("{\"models\":{\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sessionKey\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"refreshTokenGenerated\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"refreshedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"invalidatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"}],\"dbName\":null},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"roles\",\"kind\":\"object\",\"type\":\"Role\",\"relationName\":\"RoleToUser\"},{\"name\":\"permissions\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"login\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"image\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Role\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"moniker\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"permissions\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"RoleToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Company\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"cw_CompanyId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"cw_Identifier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"credentials\",\"kind\":\"object\",\"type\":\"Credential\",\"relationName\":\"CompanyToCredential\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"CredentialType\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"permissionScope\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"icon\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fields\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"credentials\",\"kind\":\"object\",\"type\":\"Credential\",\"relationName\":\"CredentialToCredentialType\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"SecureValue\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"hash\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"credentialId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"credential\",\"kind\":\"object\",\"type\":\"Credential\",\"relationName\":\"CredentialToSecureValue\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Credential\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"typeId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"object\",\"type\":\"CredentialType\",\"relationName\":\"CredentialToCredentialType\"},{\"name\":\"fields\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"companyId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"Company\",\"relationName\":\"CompanyToCredential\"},{\"name\":\"securevalues\",\"kind\":\"object\",\"type\":\"SecureValue\",\"relationName\":\"CredentialToSecureValue\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}")
|
||||
config.runtimeDataModel = JSON.parse("{\"models\":{\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sessionKey\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"refreshTokenGenerated\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"refreshedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"invalidatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"}],\"dbName\":null},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"roles\",\"kind\":\"object\",\"type\":\"Role\",\"relationName\":\"RoleToUser\"},{\"name\":\"permissions\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"login\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"image\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Role\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"moniker\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"permissions\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"users\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"RoleToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Company\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"cw_CompanyId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"cw_Identifier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"credentials\",\"kind\":\"object\",\"type\":\"Credential\",\"relationName\":\"CompanyToCredential\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"CredentialType\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"permissionScope\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"icon\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"fields\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"credentials\",\"kind\":\"object\",\"type\":\"Credential\",\"relationName\":\"CredentialToCredentialType\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"SecureValue\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"hash\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"credentialId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"credential\",\"kind\":\"object\",\"type\":\"Credential\",\"relationName\":\"CredentialToSecureValue\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Credential\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"typeId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"object\",\"type\":\"CredentialType\",\"relationName\":\"CredentialToCredentialType\"},{\"name\":\"fields\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"companyId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"company\",\"kind\":\"object\",\"type\":\"Company\",\"relationName\":\"CompanyToCredential\"},{\"name\":\"securevalues\",\"kind\":\"object\",\"type\":\"SecureValue\",\"relationName\":\"CredentialToSecureValue\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}")
|
||||
|
||||
async function decodeBase64AsWasm(wasmBase64: string): Promise<WebAssembly.Module> {
|
||||
const { Buffer } = await import('node:buffer')
|
||||
|
||||
@@ -1050,6 +1050,7 @@ export type SecureValueScalarFieldEnum = (typeof SecureValueScalarFieldEnum)[key
|
||||
export const CredentialScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
notes: 'notes',
|
||||
typeId: 'typeId',
|
||||
fields: 'fields',
|
||||
companyId: 'companyId',
|
||||
|
||||
@@ -159,6 +159,7 @@ export type SecureValueScalarFieldEnum = (typeof SecureValueScalarFieldEnum)[key
|
||||
export const CredentialScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
notes: 'notes',
|
||||
typeId: 'typeId',
|
||||
fields: 'fields',
|
||||
companyId: 'companyId',
|
||||
|
||||
@@ -27,6 +27,7 @@ export type AggregateCredential = {
|
||||
export type CredentialMinAggregateOutputType = {
|
||||
id: string | null
|
||||
name: string | null
|
||||
notes: string | null
|
||||
typeId: string | null
|
||||
companyId: string | null
|
||||
createdAt: Date | null
|
||||
@@ -36,6 +37,7 @@ export type CredentialMinAggregateOutputType = {
|
||||
export type CredentialMaxAggregateOutputType = {
|
||||
id: string | null
|
||||
name: string | null
|
||||
notes: string | null
|
||||
typeId: string | null
|
||||
companyId: string | null
|
||||
createdAt: Date | null
|
||||
@@ -45,6 +47,7 @@ export type CredentialMaxAggregateOutputType = {
|
||||
export type CredentialCountAggregateOutputType = {
|
||||
id: number
|
||||
name: number
|
||||
notes: number
|
||||
typeId: number
|
||||
fields: number
|
||||
companyId: number
|
||||
@@ -57,6 +60,7 @@ export type CredentialCountAggregateOutputType = {
|
||||
export type CredentialMinAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
notes?: true
|
||||
typeId?: true
|
||||
companyId?: true
|
||||
createdAt?: true
|
||||
@@ -66,6 +70,7 @@ export type CredentialMinAggregateInputType = {
|
||||
export type CredentialMaxAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
notes?: true
|
||||
typeId?: true
|
||||
companyId?: true
|
||||
createdAt?: true
|
||||
@@ -75,6 +80,7 @@ export type CredentialMaxAggregateInputType = {
|
||||
export type CredentialCountAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
notes?: true
|
||||
typeId?: true
|
||||
fields?: true
|
||||
companyId?: true
|
||||
@@ -158,6 +164,7 @@ export type CredentialGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
export type CredentialGroupByOutputType = {
|
||||
id: string
|
||||
name: string
|
||||
notes: string | null
|
||||
typeId: string
|
||||
fields: runtime.JsonValue
|
||||
companyId: string
|
||||
@@ -189,6 +196,7 @@ export type CredentialWhereInput = {
|
||||
NOT?: Prisma.CredentialWhereInput | Prisma.CredentialWhereInput[]
|
||||
id?: Prisma.StringFilter<"Credential"> | string
|
||||
name?: Prisma.StringFilter<"Credential"> | string
|
||||
notes?: Prisma.StringNullableFilter<"Credential"> | string | null
|
||||
typeId?: Prisma.StringFilter<"Credential"> | string
|
||||
fields?: Prisma.JsonFilter<"Credential">
|
||||
companyId?: Prisma.StringFilter<"Credential"> | string
|
||||
@@ -202,6 +210,7 @@ export type CredentialWhereInput = {
|
||||
export type CredentialOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
typeId?: Prisma.SortOrder
|
||||
fields?: Prisma.SortOrder
|
||||
companyId?: Prisma.SortOrder
|
||||
@@ -218,6 +227,7 @@ export type CredentialWhereUniqueInput = Prisma.AtLeast<{
|
||||
OR?: Prisma.CredentialWhereInput[]
|
||||
NOT?: Prisma.CredentialWhereInput | Prisma.CredentialWhereInput[]
|
||||
name?: Prisma.StringFilter<"Credential"> | string
|
||||
notes?: Prisma.StringNullableFilter<"Credential"> | string | null
|
||||
typeId?: Prisma.StringFilter<"Credential"> | string
|
||||
fields?: Prisma.JsonFilter<"Credential">
|
||||
companyId?: Prisma.StringFilter<"Credential"> | string
|
||||
@@ -231,6 +241,7 @@ export type CredentialWhereUniqueInput = Prisma.AtLeast<{
|
||||
export type CredentialOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
typeId?: Prisma.SortOrder
|
||||
fields?: Prisma.SortOrder
|
||||
companyId?: Prisma.SortOrder
|
||||
@@ -247,6 +258,7 @@ export type CredentialScalarWhereWithAggregatesInput = {
|
||||
NOT?: Prisma.CredentialScalarWhereWithAggregatesInput | Prisma.CredentialScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.StringWithAggregatesFilter<"Credential"> | string
|
||||
name?: Prisma.StringWithAggregatesFilter<"Credential"> | string
|
||||
notes?: Prisma.StringNullableWithAggregatesFilter<"Credential"> | string | null
|
||||
typeId?: Prisma.StringWithAggregatesFilter<"Credential"> | string
|
||||
fields?: Prisma.JsonWithAggregatesFilter<"Credential">
|
||||
companyId?: Prisma.StringWithAggregatesFilter<"Credential"> | string
|
||||
@@ -257,6 +269,7 @@ export type CredentialScalarWhereWithAggregatesInput = {
|
||||
export type CredentialCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -268,6 +281,7 @@ export type CredentialCreateInput = {
|
||||
export type CredentialUncheckedCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
typeId: string
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId: string
|
||||
@@ -279,6 +293,7 @@ export type CredentialUncheckedCreateInput = {
|
||||
export type CredentialUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -290,6 +305,7 @@ export type CredentialUpdateInput = {
|
||||
export type CredentialUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -301,6 +317,7 @@ export type CredentialUncheckedUpdateInput = {
|
||||
export type CredentialCreateManyInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
typeId: string
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId: string
|
||||
@@ -311,6 +328,7 @@ export type CredentialCreateManyInput = {
|
||||
export type CredentialUpdateManyMutationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -319,6 +337,7 @@ export type CredentialUpdateManyMutationInput = {
|
||||
export type CredentialUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -344,6 +363,7 @@ export type CredentialScalarRelationFilter = {
|
||||
export type CredentialCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrder
|
||||
typeId?: Prisma.SortOrder
|
||||
fields?: Prisma.SortOrder
|
||||
companyId?: Prisma.SortOrder
|
||||
@@ -354,6 +374,7 @@ export type CredentialCountOrderByAggregateInput = {
|
||||
export type CredentialMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrder
|
||||
typeId?: Prisma.SortOrder
|
||||
companyId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
@@ -363,6 +384,7 @@ export type CredentialMaxOrderByAggregateInput = {
|
||||
export type CredentialMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrder
|
||||
typeId?: Prisma.SortOrder
|
||||
companyId?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
@@ -470,6 +492,7 @@ export type CredentialUpdateOneRequiredWithoutSecurevaluesNestedInput = {
|
||||
export type CredentialCreateWithoutCompanyInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -480,6 +503,7 @@ export type CredentialCreateWithoutCompanyInput = {
|
||||
export type CredentialUncheckedCreateWithoutCompanyInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
typeId: string
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Date | string
|
||||
@@ -519,6 +543,7 @@ export type CredentialScalarWhereInput = {
|
||||
NOT?: Prisma.CredentialScalarWhereInput | Prisma.CredentialScalarWhereInput[]
|
||||
id?: Prisma.StringFilter<"Credential"> | string
|
||||
name?: Prisma.StringFilter<"Credential"> | string
|
||||
notes?: Prisma.StringNullableFilter<"Credential"> | string | null
|
||||
typeId?: Prisma.StringFilter<"Credential"> | string
|
||||
fields?: Prisma.JsonFilter<"Credential">
|
||||
companyId?: Prisma.StringFilter<"Credential"> | string
|
||||
@@ -529,6 +554,7 @@ export type CredentialScalarWhereInput = {
|
||||
export type CredentialCreateWithoutTypeInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -539,6 +565,7 @@ export type CredentialCreateWithoutTypeInput = {
|
||||
export type CredentialUncheckedCreateWithoutTypeInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId: string
|
||||
createdAt?: Date | string
|
||||
@@ -575,6 +602,7 @@ export type CredentialUpdateManyWithWhereWithoutTypeInput = {
|
||||
export type CredentialCreateWithoutSecurevaluesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
@@ -585,6 +613,7 @@ export type CredentialCreateWithoutSecurevaluesInput = {
|
||||
export type CredentialUncheckedCreateWithoutSecurevaluesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
typeId: string
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId: string
|
||||
@@ -611,6 +640,7 @@ export type CredentialUpdateToOneWithWhereWithoutSecurevaluesInput = {
|
||||
export type CredentialUpdateWithoutSecurevaluesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -621,6 +651,7 @@ export type CredentialUpdateWithoutSecurevaluesInput = {
|
||||
export type CredentialUncheckedUpdateWithoutSecurevaluesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -631,6 +662,7 @@ export type CredentialUncheckedUpdateWithoutSecurevaluesInput = {
|
||||
export type CredentialCreateManyCompanyInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
typeId: string
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Date | string
|
||||
@@ -640,6 +672,7 @@ export type CredentialCreateManyCompanyInput = {
|
||||
export type CredentialUpdateWithoutCompanyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -650,6 +683,7 @@ export type CredentialUpdateWithoutCompanyInput = {
|
||||
export type CredentialUncheckedUpdateWithoutCompanyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -660,6 +694,7 @@ export type CredentialUncheckedUpdateWithoutCompanyInput = {
|
||||
export type CredentialUncheckedUpdateManyWithoutCompanyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
typeId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -669,6 +704,7 @@ export type CredentialUncheckedUpdateManyWithoutCompanyInput = {
|
||||
export type CredentialCreateManyTypeInput = {
|
||||
id?: string
|
||||
name: string
|
||||
notes?: string | null
|
||||
fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId: string
|
||||
createdAt?: Date | string
|
||||
@@ -678,6 +714,7 @@ export type CredentialCreateManyTypeInput = {
|
||||
export type CredentialUpdateWithoutTypeInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -688,6 +725,7 @@ export type CredentialUpdateWithoutTypeInput = {
|
||||
export type CredentialUncheckedUpdateWithoutTypeInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -698,6 +736,7 @@ export type CredentialUncheckedUpdateWithoutTypeInput = {
|
||||
export type CredentialUncheckedUpdateManyWithoutTypeInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
||||
companyId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -738,6 +777,7 @@ export type CredentialCountOutputTypeCountSecurevaluesArgs<ExtArgs extends runti
|
||||
export type CredentialSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
notes?: boolean
|
||||
typeId?: boolean
|
||||
fields?: boolean
|
||||
companyId?: boolean
|
||||
@@ -752,6 +792,7 @@ export type CredentialSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
export type CredentialSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
notes?: boolean
|
||||
typeId?: boolean
|
||||
fields?: boolean
|
||||
companyId?: boolean
|
||||
@@ -764,6 +805,7 @@ export type CredentialSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Ex
|
||||
export type CredentialSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
notes?: boolean
|
||||
typeId?: boolean
|
||||
fields?: boolean
|
||||
companyId?: boolean
|
||||
@@ -776,6 +818,7 @@ export type CredentialSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Ex
|
||||
export type CredentialSelectScalar = {
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
notes?: boolean
|
||||
typeId?: boolean
|
||||
fields?: boolean
|
||||
companyId?: boolean
|
||||
@@ -783,7 +826,7 @@ export type CredentialSelectScalar = {
|
||||
updatedAt?: boolean
|
||||
}
|
||||
|
||||
export type CredentialOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "typeId" | "fields" | "companyId" | "createdAt" | "updatedAt", ExtArgs["result"]["credential"]>
|
||||
export type CredentialOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "notes" | "typeId" | "fields" | "companyId" | "createdAt" | "updatedAt", ExtArgs["result"]["credential"]>
|
||||
export type CredentialInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
type?: boolean | Prisma.CredentialTypeDefaultArgs<ExtArgs>
|
||||
company?: boolean | Prisma.CompanyDefaultArgs<ExtArgs>
|
||||
@@ -809,6 +852,7 @@ export type $CredentialPayload<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
name: string
|
||||
notes: string | null
|
||||
typeId: string
|
||||
fields: runtime.JsonValue
|
||||
companyId: string
|
||||
@@ -1242,6 +1286,7 @@ export interface Prisma__CredentialClient<T, Null = never, ExtArgs extends runti
|
||||
export interface CredentialFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"Credential", 'String'>
|
||||
readonly name: Prisma.FieldRef<"Credential", 'String'>
|
||||
readonly notes: Prisma.FieldRef<"Credential", 'String'>
|
||||
readonly typeId: Prisma.FieldRef<"Credential", 'String'>
|
||||
readonly fields: Prisma.FieldRef<"Credential", 'Json'>
|
||||
readonly companyId: Prisma.FieldRef<"Credential", 'String'>
|
||||
|
||||
Reference in New Issue
Block a user