diff --git a/node_modules/.prisma/client/edge.js b/node_modules/.prisma/client/edge.js index 92a6c363..e5c99e02 100644 --- a/node_modules/.prisma/client/edge.js +++ b/node_modules/.prisma/client/edge.js @@ -129,6 +129,10 @@ exports.Prisma.MailCredentialsScalarFieldEnum = { host: 'host', port: 'port', secure: 'secure', + use_oauth: 'use_oauth', + refresh_token: 'refresh_token', + access_token: 'access_token', + token_expiry: 'token_expiry', smtp_host: 'smtp_host', smtp_port: 'smtp_port', smtp_secure: 'smtp_secure', @@ -147,6 +151,55 @@ exports.Prisma.WebDAVCredentialsScalarFieldEnum = { updatedAt: 'updatedAt' }; +exports.Prisma.AnnouncementScalarFieldEnum = { + id: 'id', + title: 'title', + content: 'content', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + authorId: 'authorId', + targetRoles: 'targetRoles' +}; + +exports.Prisma.MissionScalarFieldEnum = { + id: 'id', + name: 'name', + logo: 'logo', + oddScope: 'oddScope', + niveau: 'niveau', + intention: 'intention', + missionType: 'missionType', + donneurDOrdre: 'donneurDOrdre', + projection: 'projection', + services: 'services', + participation: 'participation', + profils: 'profils', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + creatorId: 'creatorId' +}; + +exports.Prisma.AttachmentScalarFieldEnum = { + id: 'id', + filename: 'filename', + filePath: 'filePath', + fileType: 'fileType', + fileSize: 'fileSize', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + uploaderId: 'uploaderId' +}; + +exports.Prisma.MissionUserScalarFieldEnum = { + id: 'id', + role: 'role', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + userId: 'userId' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -168,7 +221,11 @@ exports.Prisma.ModelName = { Calendar: 'Calendar', Event: 'Event', MailCredentials: 'MailCredentials', - WebDAVCredentials: 'WebDAVCredentials' + WebDAVCredentials: 'WebDAVCredentials', + Announcement: 'Announcement', + Mission: 'Mission', + Attachment: 'Attachment', + MissionUser: 'MissionUser' }; /** * Create the Client @@ -181,7 +238,7 @@ const config = { "value": "prisma-client-js" }, "output": { - "value": "/Users/alma/Documents/NeahFront9/node_modules/@prisma/client", + "value": "/Users/alma/Documents/NeahNew/node_modules/@prisma/client", "fromEnvVar": null }, "config": { @@ -199,7 +256,7 @@ const config = { } ], "previewFeatures": [], - "sourceFilePath": "/Users/alma/Documents/NeahFront9/prisma/schema.prisma" + "sourceFilePath": "/Users/alma/Documents/NeahNew/prisma/schema.prisma" }, "relativeEnvPaths": { "rootEnvPath": null, @@ -221,13 +278,13 @@ const config = { } } }, - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n binaryTargets = [\"native\", \"linux-arm64-openssl-3.0.x\"]\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n email String @unique\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n calendars Calendar[]\n events Event[]\n mailCredentials MailCredentials[]\n webdavCredentials WebDAVCredentials?\n}\n\nmodel Calendar {\n id String @id @default(uuid())\n name String\n color String @default(\"#0082c9\")\n description String?\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n events Event[]\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n\nmodel Event {\n id String @id @default(uuid())\n title String\n description String?\n start DateTime\n end DateTime\n location String?\n isAllDay Boolean @default(false)\n calendar Calendar @relation(fields: [calendarId], references: [id], onDelete: Cascade)\n calendarId String\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([calendarId])\n @@index([userId])\n}\n\nmodel MailCredentials {\n id String @id @default(uuid())\n userId String\n email String\n password String\n host String\n port Int\n secure Boolean @default(true)\n\n // SMTP Settings\n smtp_host String?\n smtp_port Int?\n smtp_secure Boolean? @default(false)\n\n // Display Settings\n display_name String?\n color String? @default(\"#0082c9\")\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n\nmodel WebDAVCredentials {\n id String @id @default(uuid())\n userId String @unique\n username String\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n", - "inlineSchemaHash": "43645444f3e2fd680e219829659eae3fb2d992da1a99638d0d889fcf0366739a", + "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n binaryTargets = [\"native\", \"linux-arm64-openssl-3.0.x\"]\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n email String @unique\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n calendars Calendar[]\n events Event[]\n mailCredentials MailCredentials[]\n webdavCredentials WebDAVCredentials?\n announcements Announcement[]\n missions Mission[]\n missionUsers MissionUser[]\n uploadedAttachments Attachment[]\n}\n\nmodel Calendar {\n id String @id @default(uuid())\n name String\n color String @default(\"#0082c9\")\n description String?\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n events Event[]\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n\nmodel Event {\n id String @id @default(uuid())\n title String\n description String?\n start DateTime\n end DateTime\n location String?\n isAllDay Boolean @default(false)\n calendar Calendar @relation(fields: [calendarId], references: [id], onDelete: Cascade)\n calendarId String\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([calendarId])\n @@index([userId])\n}\n\nmodel MailCredentials {\n id String @id @default(uuid())\n userId String\n email String\n password String? // Make password optional\n host String\n port Int\n secure Boolean @default(true)\n\n // OAuth Settings\n use_oauth Boolean @default(false)\n refresh_token String?\n access_token String?\n token_expiry DateTime?\n\n // SMTP Settings\n smtp_host String?\n smtp_port Int?\n smtp_secure Boolean? @default(false)\n\n // Display Settings\n display_name String?\n color String? @default(\"#0082c9\")\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@unique([userId, email])\n @@index([userId])\n}\n\nmodel WebDAVCredentials {\n id String @id @default(uuid())\n userId String @unique\n username String\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n\nmodel Announcement {\n id String @id @default(uuid())\n title String\n content String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n author User @relation(fields: [authorId], references: [id], onDelete: Cascade)\n authorId String\n targetRoles String[]\n\n @@index([authorId])\n}\n\n// Mission models\nmodel Mission {\n id String @id @default(uuid())\n name String\n logo String? // Stores the path to the logo in Minio\n oddScope String[] // Categories / ODD scope\n niveau String // Project Type / Niveau\n intention String // Description / Intention\n missionType String // Project location type / Type de mission\n donneurDOrdre String // Volunteer Type / Donneur d'ordre\n projection String // Duration / Projection\n services String[] // Experience / Services\n participation String? // Friendly Address / Participation\n profils String[] // Level / Profils\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n creator User @relation(fields: [creatorId], references: [id], onDelete: Cascade)\n creatorId String\n attachments Attachment[]\n missionUsers MissionUser[]\n\n @@index([creatorId])\n}\n\nmodel Attachment {\n id String @id @default(uuid())\n filename String // Original filename\n filePath String // Path in Minio: user-${userId}/missions/${missionId}/attachments/${filename}\n fileType String // MIME type\n fileSize Int // Size in bytes\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n mission Mission @relation(fields: [missionId], references: [id], onDelete: Cascade)\n missionId String\n uploader User @relation(fields: [uploaderId], references: [id], onDelete: Cascade)\n uploaderId String\n\n @@index([missionId])\n @@index([uploaderId])\n}\n\nmodel MissionUser {\n id String @id @default(uuid())\n role String // 'gardien-temps', 'gardien-parole', 'gardien-memoire', 'volontaire'\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n mission Mission @relation(fields: [missionId], references: [id], onDelete: Cascade)\n missionId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n userId String\n\n @@unique([missionId, userId, role])\n @@index([missionId])\n @@index([userId])\n}\n", + "inlineSchemaHash": "88afc136568bbc75c9ec5b46750ab76fa3829d2be8ac021c44bc210bff0bee43", "copyEngine": true } config.dirname = '/' -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"calendars\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Calendar\",\"nativeType\":null,\"relationName\":\"CalendarToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"events\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mailCredentials\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MailCredentials\",\"nativeType\":null,\"relationName\":\"MailCredentialsToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"webdavCredentials\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WebDAVCredentials\",\"nativeType\":null,\"relationName\":\"UserToWebDAVCredentials\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Calendar\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"#0082c9\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"events\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"CalendarToEvent\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"CalendarToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Event\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"start\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"end\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"location\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isAllDay\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"calendar\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Calendar\",\"nativeType\":null,\"relationName\":\"CalendarToEvent\",\"relationFromFields\":[\"calendarId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"calendarId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"EventToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MailCredentials\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"host\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"port\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"secure\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_host\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_port\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_secure\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"display_name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"#0082c9\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"MailCredentialsToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"WebDAVCredentials\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"UserToWebDAVCredentials\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"calendars\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Calendar\",\"nativeType\":null,\"relationName\":\"CalendarToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"events\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mailCredentials\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MailCredentials\",\"nativeType\":null,\"relationName\":\"MailCredentialsToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"webdavCredentials\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WebDAVCredentials\",\"nativeType\":null,\"relationName\":\"UserToWebDAVCredentials\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"announcements\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Announcement\",\"nativeType\":null,\"relationName\":\"AnnouncementToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missions\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Mission\",\"nativeType\":null,\"relationName\":\"MissionToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionUsers\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MissionUser\",\"nativeType\":null,\"relationName\":\"MissionUserToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uploadedAttachments\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Attachment\",\"nativeType\":null,\"relationName\":\"AttachmentToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Calendar\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"#0082c9\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"events\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"CalendarToEvent\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"CalendarToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Event\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"start\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"end\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"location\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isAllDay\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"calendar\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Calendar\",\"nativeType\":null,\"relationName\":\"CalendarToEvent\",\"relationFromFields\":[\"calendarId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"calendarId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"EventToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MailCredentials\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"host\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"port\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"secure\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"use_oauth\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_expiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_host\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_port\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_secure\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"display_name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"#0082c9\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"MailCredentialsToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"email\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"email\"]}],\"isGenerated\":false},\"WebDAVCredentials\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"UserToWebDAVCredentials\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Announcement\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"author\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"AnnouncementToUser\",\"relationFromFields\":[\"authorId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"authorId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"targetRoles\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Mission\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"logo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"oddScope\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"niveau\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"intention\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"donneurDOrdre\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"projection\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"services\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"participation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"profils\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"creator\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"MissionToUser\",\"relationFromFields\":[\"creatorId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"creatorId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"attachments\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Attachment\",\"nativeType\":null,\"relationName\":\"AttachmentToMission\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionUsers\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MissionUser\",\"nativeType\":null,\"relationName\":\"MissionToMissionUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Attachment\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"filename\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"filePath\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"mission\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Mission\",\"nativeType\":null,\"relationName\":\"AttachmentToMission\",\"relationFromFields\":[\"missionId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uploader\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"AttachmentToUser\",\"relationFromFields\":[\"uploaderId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uploaderId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MissionUser\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"mission\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Mission\",\"nativeType\":null,\"relationName\":\"MissionToMissionUser\",\"relationFromFields\":[\"missionId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"MissionUserToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"missionId\",\"userId\",\"role\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"missionId\",\"userId\",\"role\"]}],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") defineDmmfProperty(exports.Prisma, config.runtimeDataModel) config.engineWasm = undefined config.compilerWasm = undefined diff --git a/node_modules/.prisma/client/index-browser.js b/node_modules/.prisma/client/index-browser.js index c0d9521c..4a3b5f8f 100644 --- a/node_modules/.prisma/client/index-browser.js +++ b/node_modules/.prisma/client/index-browser.js @@ -157,6 +157,10 @@ exports.Prisma.MailCredentialsScalarFieldEnum = { host: 'host', port: 'port', secure: 'secure', + use_oauth: 'use_oauth', + refresh_token: 'refresh_token', + access_token: 'access_token', + token_expiry: 'token_expiry', smtp_host: 'smtp_host', smtp_port: 'smtp_port', smtp_secure: 'smtp_secure', @@ -175,6 +179,55 @@ exports.Prisma.WebDAVCredentialsScalarFieldEnum = { updatedAt: 'updatedAt' }; +exports.Prisma.AnnouncementScalarFieldEnum = { + id: 'id', + title: 'title', + content: 'content', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + authorId: 'authorId', + targetRoles: 'targetRoles' +}; + +exports.Prisma.MissionScalarFieldEnum = { + id: 'id', + name: 'name', + logo: 'logo', + oddScope: 'oddScope', + niveau: 'niveau', + intention: 'intention', + missionType: 'missionType', + donneurDOrdre: 'donneurDOrdre', + projection: 'projection', + services: 'services', + participation: 'participation', + profils: 'profils', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + creatorId: 'creatorId' +}; + +exports.Prisma.AttachmentScalarFieldEnum = { + id: 'id', + filename: 'filename', + filePath: 'filePath', + fileType: 'fileType', + fileSize: 'fileSize', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + uploaderId: 'uploaderId' +}; + +exports.Prisma.MissionUserScalarFieldEnum = { + id: 'id', + role: 'role', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + userId: 'userId' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -196,7 +249,11 @@ exports.Prisma.ModelName = { Calendar: 'Calendar', Event: 'Event', MailCredentials: 'MailCredentials', - WebDAVCredentials: 'WebDAVCredentials' + WebDAVCredentials: 'WebDAVCredentials', + Announcement: 'Announcement', + Mission: 'Mission', + Attachment: 'Attachment', + MissionUser: 'MissionUser' }; /** diff --git a/node_modules/.prisma/client/index.d.ts b/node_modules/.prisma/client/index.d.ts index c8eb32f6..b78436fd 100644 --- a/node_modules/.prisma/client/index.d.ts +++ b/node_modules/.prisma/client/index.d.ts @@ -38,6 +38,26 @@ export type MailCredentials = $Result.DefaultSelection +/** + * Model Announcement + * + */ +export type Announcement = $Result.DefaultSelection +/** + * Model Mission + * + */ +export type Mission = $Result.DefaultSelection +/** + * Model Attachment + * + */ +export type Attachment = $Result.DefaultSelection +/** + * Model MissionUser + * + */ +export type MissionUser = $Result.DefaultSelection /** * ## Prisma Client ʲˢ @@ -213,6 +233,46 @@ export class PrismaClient< * ``` */ get webDAVCredentials(): Prisma.WebDAVCredentialsDelegate; + + /** + * `prisma.announcement`: Exposes CRUD operations for the **Announcement** model. + * Example usage: + * ```ts + * // Fetch zero or more Announcements + * const announcements = await prisma.announcement.findMany() + * ``` + */ + get announcement(): Prisma.AnnouncementDelegate; + + /** + * `prisma.mission`: Exposes CRUD operations for the **Mission** model. + * Example usage: + * ```ts + * // Fetch zero or more Missions + * const missions = await prisma.mission.findMany() + * ``` + */ + get mission(): Prisma.MissionDelegate; + + /** + * `prisma.attachment`: Exposes CRUD operations for the **Attachment** model. + * Example usage: + * ```ts + * // Fetch zero or more Attachments + * const attachments = await prisma.attachment.findMany() + * ``` + */ + get attachment(): Prisma.AttachmentDelegate; + + /** + * `prisma.missionUser`: Exposes CRUD operations for the **MissionUser** model. + * Example usage: + * ```ts + * // Fetch zero or more MissionUsers + * const missionUsers = await prisma.missionUser.findMany() + * ``` + */ + get missionUser(): Prisma.MissionUserDelegate; } export namespace Prisma { @@ -657,7 +717,11 @@ export namespace Prisma { Calendar: 'Calendar', Event: 'Event', MailCredentials: 'MailCredentials', - WebDAVCredentials: 'WebDAVCredentials' + WebDAVCredentials: 'WebDAVCredentials', + Announcement: 'Announcement', + Mission: 'Mission', + Attachment: 'Attachment', + MissionUser: 'MissionUser' }; export type ModelName = (typeof ModelName)[keyof typeof ModelName] @@ -673,7 +737,7 @@ export namespace Prisma { export type TypeMap = { meta: { - modelProps: "user" | "calendar" | "event" | "mailCredentials" | "webDAVCredentials" + modelProps: "user" | "calendar" | "event" | "mailCredentials" | "webDAVCredentials" | "announcement" | "mission" | "attachment" | "missionUser" txIsolationLevel: Prisma.TransactionIsolationLevel } model: { @@ -1047,6 +1111,302 @@ export namespace Prisma { } } } + Announcement: { + payload: Prisma.$AnnouncementPayload + fields: Prisma.AnnouncementFieldRefs + operations: { + findUnique: { + args: Prisma.AnnouncementFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AnnouncementFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.AnnouncementFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AnnouncementFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.AnnouncementFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.AnnouncementCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.AnnouncementCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AnnouncementCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.AnnouncementDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.AnnouncementUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AnnouncementDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AnnouncementUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AnnouncementUpdateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AnnouncementUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.AnnouncementAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.AnnouncementGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.AnnouncementCountArgs + result: $Utils.Optional | number + } + } + } + Mission: { + payload: Prisma.$MissionPayload + fields: Prisma.MissionFieldRefs + operations: { + findUnique: { + args: Prisma.MissionFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.MissionFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.MissionFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.MissionFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.MissionFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.MissionCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.MissionCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.MissionCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.MissionDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.MissionUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.MissionDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.MissionUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.MissionUpdateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + upsert: { + args: Prisma.MissionUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.MissionAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.MissionGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.MissionCountArgs + result: $Utils.Optional | number + } + } + } + Attachment: { + payload: Prisma.$AttachmentPayload + fields: Prisma.AttachmentFieldRefs + operations: { + findUnique: { + args: Prisma.AttachmentFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.AttachmentFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.AttachmentFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.AttachmentFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.AttachmentFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.AttachmentCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.AttachmentCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.AttachmentCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.AttachmentDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.AttachmentUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.AttachmentDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.AttachmentUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.AttachmentUpdateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + upsert: { + args: Prisma.AttachmentUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.AttachmentAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.AttachmentGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.AttachmentCountArgs + result: $Utils.Optional | number + } + } + } + MissionUser: { + payload: Prisma.$MissionUserPayload + fields: Prisma.MissionUserFieldRefs + operations: { + findUnique: { + args: Prisma.MissionUserFindUniqueArgs + result: $Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.MissionUserFindUniqueOrThrowArgs + result: $Utils.PayloadToResult + } + findFirst: { + args: Prisma.MissionUserFindFirstArgs + result: $Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.MissionUserFindFirstOrThrowArgs + result: $Utils.PayloadToResult + } + findMany: { + args: Prisma.MissionUserFindManyArgs + result: $Utils.PayloadToResult[] + } + create: { + args: Prisma.MissionUserCreateArgs + result: $Utils.PayloadToResult + } + createMany: { + args: Prisma.MissionUserCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.MissionUserCreateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + delete: { + args: Prisma.MissionUserDeleteArgs + result: $Utils.PayloadToResult + } + update: { + args: Prisma.MissionUserUpdateArgs + result: $Utils.PayloadToResult + } + deleteMany: { + args: Prisma.MissionUserDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.MissionUserUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.MissionUserUpdateManyAndReturnArgs + result: $Utils.PayloadToResult[] + } + upsert: { + args: Prisma.MissionUserUpsertArgs + result: $Utils.PayloadToResult + } + aggregate: { + args: Prisma.MissionUserAggregateArgs + result: $Utils.Optional + } + groupBy: { + args: Prisma.MissionUserGroupByArgs + result: $Utils.Optional[] + } + count: { + args: Prisma.MissionUserCountArgs + result: $Utils.Optional | number + } + } + } } } & { other: { @@ -1136,6 +1496,10 @@ export namespace Prisma { event?: EventOmit mailCredentials?: MailCredentialsOmit webDAVCredentials?: WebDAVCredentialsOmit + announcement?: AnnouncementOmit + mission?: MissionOmit + attachment?: AttachmentOmit + missionUser?: MissionUserOmit } /* Types for Logging */ @@ -1233,12 +1597,20 @@ export namespace Prisma { calendars: number events: number mailCredentials: number + announcements: number + missions: number + missionUsers: number + uploadedAttachments: number } export type UserCountOutputTypeSelect = { calendars?: boolean | UserCountOutputTypeCountCalendarsArgs events?: boolean | UserCountOutputTypeCountEventsArgs mailCredentials?: boolean | UserCountOutputTypeCountMailCredentialsArgs + announcements?: boolean | UserCountOutputTypeCountAnnouncementsArgs + missions?: boolean | UserCountOutputTypeCountMissionsArgs + missionUsers?: boolean | UserCountOutputTypeCountMissionUsersArgs + uploadedAttachments?: boolean | UserCountOutputTypeCountUploadedAttachmentsArgs } // Custom InputTypes @@ -1273,6 +1645,34 @@ export namespace Prisma { where?: MailCredentialsWhereInput } + /** + * UserCountOutputType without action + */ + export type UserCountOutputTypeCountAnnouncementsArgs = { + where?: AnnouncementWhereInput + } + + /** + * UserCountOutputType without action + */ + export type UserCountOutputTypeCountMissionsArgs = { + where?: MissionWhereInput + } + + /** + * UserCountOutputType without action + */ + export type UserCountOutputTypeCountMissionUsersArgs = { + where?: MissionUserWhereInput + } + + /** + * UserCountOutputType without action + */ + export type UserCountOutputTypeCountUploadedAttachmentsArgs = { + where?: AttachmentWhereInput + } + /** * Count Type CalendarCountOutputType @@ -1305,6 +1705,46 @@ export namespace Prisma { } + /** + * Count Type MissionCountOutputType + */ + + export type MissionCountOutputType = { + attachments: number + missionUsers: number + } + + export type MissionCountOutputTypeSelect = { + attachments?: boolean | MissionCountOutputTypeCountAttachmentsArgs + missionUsers?: boolean | MissionCountOutputTypeCountMissionUsersArgs + } + + // Custom InputTypes + /** + * MissionCountOutputType without action + */ + export type MissionCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the MissionCountOutputType + */ + select?: MissionCountOutputTypeSelect | null + } + + /** + * MissionCountOutputType without action + */ + export type MissionCountOutputTypeCountAttachmentsArgs = { + where?: AttachmentWhereInput + } + + /** + * MissionCountOutputType without action + */ + export type MissionCountOutputTypeCountMissionUsersArgs = { + where?: MissionUserWhereInput + } + + /** * Models */ @@ -1477,6 +1917,10 @@ export namespace Prisma { events?: boolean | User$eventsArgs mailCredentials?: boolean | User$mailCredentialsArgs webdavCredentials?: boolean | User$webdavCredentialsArgs + announcements?: boolean | User$announcementsArgs + missions?: boolean | User$missionsArgs + missionUsers?: boolean | User$missionUsersArgs + uploadedAttachments?: boolean | User$uploadedAttachmentsArgs _count?: boolean | UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> @@ -1510,6 +1954,10 @@ export namespace Prisma { events?: boolean | User$eventsArgs mailCredentials?: boolean | User$mailCredentialsArgs webdavCredentials?: boolean | User$webdavCredentialsArgs + announcements?: boolean | User$announcementsArgs + missions?: boolean | User$missionsArgs + missionUsers?: boolean | User$missionUsersArgs + uploadedAttachments?: boolean | User$uploadedAttachmentsArgs _count?: boolean | UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} @@ -1522,6 +1970,10 @@ export namespace Prisma { events: Prisma.$EventPayload[] mailCredentials: Prisma.$MailCredentialsPayload[] webdavCredentials: Prisma.$WebDAVCredentialsPayload | null + announcements: Prisma.$AnnouncementPayload[] + missions: Prisma.$MissionPayload[] + missionUsers: Prisma.$MissionUserPayload[] + uploadedAttachments: Prisma.$AttachmentPayload[] } scalars: $Extensions.GetPayloadResult<{ id: string @@ -1927,6 +2379,10 @@ export namespace Prisma { events = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> mailCredentials = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> webdavCredentials = {}>(args?: Subset>): Prisma__WebDAVCredentialsClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | null, null, ExtArgs, ClientOptions> + announcements = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> + missions = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> + missionUsers = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> + uploadedAttachments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -2439,6 +2895,102 @@ export namespace Prisma { where?: WebDAVCredentialsWhereInput } + /** + * User.announcements + */ + export type User$announcementsArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + where?: AnnouncementWhereInput + orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[] + cursor?: AnnouncementWhereUniqueInput + take?: number + skip?: number + distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[] + } + + /** + * User.missions + */ + export type User$missionsArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + where?: MissionWhereInput + orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[] + cursor?: MissionWhereUniqueInput + take?: number + skip?: number + distinct?: MissionScalarFieldEnum | MissionScalarFieldEnum[] + } + + /** + * User.missionUsers + */ + export type User$missionUsersArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + where?: MissionUserWhereInput + orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[] + cursor?: MissionUserWhereUniqueInput + take?: number + skip?: number + distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[] + } + + /** + * User.uploadedAttachments + */ + export type User$uploadedAttachmentsArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + where?: AttachmentWhereInput + orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[] + cursor?: AttachmentWhereUniqueInput + take?: number + skip?: number + distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[] + } + /** * User without action */ @@ -4746,6 +5298,10 @@ export namespace Prisma { host: string | null port: number | null secure: boolean | null + use_oauth: boolean | null + refresh_token: string | null + access_token: string | null + token_expiry: Date | null smtp_host: string | null smtp_port: number | null smtp_secure: boolean | null @@ -4763,6 +5319,10 @@ export namespace Prisma { host: string | null port: number | null secure: boolean | null + use_oauth: boolean | null + refresh_token: string | null + access_token: string | null + token_expiry: Date | null smtp_host: string | null smtp_port: number | null smtp_secure: boolean | null @@ -4780,6 +5340,10 @@ export namespace Prisma { host: number port: number secure: number + use_oauth: number + refresh_token: number + access_token: number + token_expiry: number smtp_host: number smtp_port: number smtp_secure: number @@ -4809,6 +5373,10 @@ export namespace Prisma { host?: true port?: true secure?: true + use_oauth?: true + refresh_token?: true + access_token?: true + token_expiry?: true smtp_host?: true smtp_port?: true smtp_secure?: true @@ -4826,6 +5394,10 @@ export namespace Prisma { host?: true port?: true secure?: true + use_oauth?: true + refresh_token?: true + access_token?: true + token_expiry?: true smtp_host?: true smtp_port?: true smtp_secure?: true @@ -4843,6 +5415,10 @@ export namespace Prisma { host?: true port?: true secure?: true + use_oauth?: true + refresh_token?: true + access_token?: true + token_expiry?: true smtp_host?: true smtp_port?: true smtp_secure?: true @@ -4943,10 +5519,14 @@ export namespace Prisma { id: string userId: string email: string - password: string + password: string | null host: string port: number secure: boolean + use_oauth: boolean + refresh_token: string | null + access_token: string | null + token_expiry: Date | null smtp_host: string | null smtp_port: number | null smtp_secure: boolean | null @@ -4983,6 +5563,10 @@ export namespace Prisma { host?: boolean port?: boolean secure?: boolean + use_oauth?: boolean + refresh_token?: boolean + access_token?: boolean + token_expiry?: boolean smtp_host?: boolean smtp_port?: boolean smtp_secure?: boolean @@ -5001,6 +5585,10 @@ export namespace Prisma { host?: boolean port?: boolean secure?: boolean + use_oauth?: boolean + refresh_token?: boolean + access_token?: boolean + token_expiry?: boolean smtp_host?: boolean smtp_port?: boolean smtp_secure?: boolean @@ -5019,6 +5607,10 @@ export namespace Prisma { host?: boolean port?: boolean secure?: boolean + use_oauth?: boolean + refresh_token?: boolean + access_token?: boolean + token_expiry?: boolean smtp_host?: boolean smtp_port?: boolean smtp_secure?: boolean @@ -5037,6 +5629,10 @@ export namespace Prisma { host?: boolean port?: boolean secure?: boolean + use_oauth?: boolean + refresh_token?: boolean + access_token?: boolean + token_expiry?: boolean smtp_host?: boolean smtp_port?: boolean smtp_secure?: boolean @@ -5046,7 +5642,7 @@ export namespace Prisma { updatedAt?: boolean } - export type MailCredentialsOmit = $Extensions.GetOmit<"id" | "userId" | "email" | "password" | "host" | "port" | "secure" | "smtp_host" | "smtp_port" | "smtp_secure" | "display_name" | "color" | "createdAt" | "updatedAt", ExtArgs["result"]["mailCredentials"]> + export type MailCredentialsOmit = $Extensions.GetOmit<"id" | "userId" | "email" | "password" | "host" | "port" | "secure" | "use_oauth" | "refresh_token" | "access_token" | "token_expiry" | "smtp_host" | "smtp_port" | "smtp_secure" | "display_name" | "color" | "createdAt" | "updatedAt", ExtArgs["result"]["mailCredentials"]> export type MailCredentialsInclude = { user?: boolean | UserDefaultArgs } @@ -5066,10 +5662,14 @@ export namespace Prisma { id: string userId: string email: string - password: string + password: string | null host: string port: number secure: boolean + use_oauth: boolean + refresh_token: string | null + access_token: string | null + token_expiry: Date | null smtp_host: string | null smtp_port: number | null smtp_secure: boolean | null @@ -5508,6 +6108,10 @@ export namespace Prisma { readonly host: FieldRef<"MailCredentials", 'String'> readonly port: FieldRef<"MailCredentials", 'Int'> readonly secure: FieldRef<"MailCredentials", 'Boolean'> + readonly use_oauth: FieldRef<"MailCredentials", 'Boolean'> + readonly refresh_token: FieldRef<"MailCredentials", 'String'> + readonly access_token: FieldRef<"MailCredentials", 'String'> + readonly token_expiry: FieldRef<"MailCredentials", 'DateTime'> readonly smtp_host: FieldRef<"MailCredentials", 'String'> readonly smtp_port: FieldRef<"MailCredentials", 'Int'> readonly smtp_secure: FieldRef<"MailCredentials", 'Boolean'> @@ -7000,6 +7604,4551 @@ export namespace Prisma { } + /** + * Model Announcement + */ + + export type AggregateAnnouncement = { + _count: AnnouncementCountAggregateOutputType | null + _min: AnnouncementMinAggregateOutputType | null + _max: AnnouncementMaxAggregateOutputType | null + } + + export type AnnouncementMinAggregateOutputType = { + id: string | null + title: string | null + content: string | null + createdAt: Date | null + updatedAt: Date | null + authorId: string | null + } + + export type AnnouncementMaxAggregateOutputType = { + id: string | null + title: string | null + content: string | null + createdAt: Date | null + updatedAt: Date | null + authorId: string | null + } + + export type AnnouncementCountAggregateOutputType = { + id: number + title: number + content: number + createdAt: number + updatedAt: number + authorId: number + targetRoles: number + _all: number + } + + + export type AnnouncementMinAggregateInputType = { + id?: true + title?: true + content?: true + createdAt?: true + updatedAt?: true + authorId?: true + } + + export type AnnouncementMaxAggregateInputType = { + id?: true + title?: true + content?: true + createdAt?: true + updatedAt?: true + authorId?: true + } + + export type AnnouncementCountAggregateInputType = { + id?: true + title?: true + content?: true + createdAt?: true + updatedAt?: true + authorId?: true + targetRoles?: true + _all?: true + } + + export type AnnouncementAggregateArgs = { + /** + * Filter which Announcement to aggregate. + */ + where?: AnnouncementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Announcements to fetch. + */ + orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: AnnouncementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Announcements from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Announcements. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Announcements + **/ + _count?: true | AnnouncementCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AnnouncementMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AnnouncementMaxAggregateInputType + } + + export type GetAnnouncementAggregateType = { + [P in keyof T & keyof AggregateAnnouncement]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type AnnouncementGroupByArgs = { + where?: AnnouncementWhereInput + orderBy?: AnnouncementOrderByWithAggregationInput | AnnouncementOrderByWithAggregationInput[] + by: AnnouncementScalarFieldEnum[] | AnnouncementScalarFieldEnum + having?: AnnouncementScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AnnouncementCountAggregateInputType | true + _min?: AnnouncementMinAggregateInputType + _max?: AnnouncementMaxAggregateInputType + } + + export type AnnouncementGroupByOutputType = { + id: string + title: string + content: string + createdAt: Date + updatedAt: Date + authorId: string + targetRoles: string[] + _count: AnnouncementCountAggregateOutputType | null + _min: AnnouncementMinAggregateOutputType | null + _max: AnnouncementMaxAggregateOutputType | null + } + + type GetAnnouncementGroupByPayload = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof AnnouncementGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type AnnouncementSelect = $Extensions.GetSelect<{ + id?: boolean + title?: boolean + content?: boolean + createdAt?: boolean + updatedAt?: boolean + authorId?: boolean + targetRoles?: boolean + author?: boolean | UserDefaultArgs + }, ExtArgs["result"]["announcement"]> + + export type AnnouncementSelectCreateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + title?: boolean + content?: boolean + createdAt?: boolean + updatedAt?: boolean + authorId?: boolean + targetRoles?: boolean + author?: boolean | UserDefaultArgs + }, ExtArgs["result"]["announcement"]> + + export type AnnouncementSelectUpdateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + title?: boolean + content?: boolean + createdAt?: boolean + updatedAt?: boolean + authorId?: boolean + targetRoles?: boolean + author?: boolean | UserDefaultArgs + }, ExtArgs["result"]["announcement"]> + + export type AnnouncementSelectScalar = { + id?: boolean + title?: boolean + content?: boolean + createdAt?: boolean + updatedAt?: boolean + authorId?: boolean + targetRoles?: boolean + } + + export type AnnouncementOmit = $Extensions.GetOmit<"id" | "title" | "content" | "createdAt" | "updatedAt" | "authorId" | "targetRoles", ExtArgs["result"]["announcement"]> + export type AnnouncementInclude = { + author?: boolean | UserDefaultArgs + } + export type AnnouncementIncludeCreateManyAndReturn = { + author?: boolean | UserDefaultArgs + } + export type AnnouncementIncludeUpdateManyAndReturn = { + author?: boolean | UserDefaultArgs + } + + export type $AnnouncementPayload = { + name: "Announcement" + objects: { + author: Prisma.$UserPayload + } + scalars: $Extensions.GetPayloadResult<{ + id: string + title: string + content: string + createdAt: Date + updatedAt: Date + authorId: string + targetRoles: string[] + }, ExtArgs["result"]["announcement"]> + composites: {} + } + + type AnnouncementGetPayload = $Result.GetResult + + type AnnouncementCountArgs = + Omit & { + select?: AnnouncementCountAggregateInputType | true + } + + export interface AnnouncementDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Announcement'], meta: { name: 'Announcement' } } + /** + * Find zero or one Announcement that matches the filter. + * @param {AnnouncementFindUniqueArgs} args - Arguments to find a Announcement + * @example + * // Get one Announcement + * const announcement = await prisma.announcement.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> + + /** + * Find one Announcement that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AnnouncementFindUniqueOrThrowArgs} args - Arguments to find a Announcement + * @example + * // Get one Announcement + * const announcement = await prisma.announcement.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Find the first Announcement that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AnnouncementFindFirstArgs} args - Arguments to find a Announcement + * @example + * // Get one Announcement + * const announcement = await prisma.announcement.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> + + /** + * Find the first Announcement that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AnnouncementFindFirstOrThrowArgs} args - Arguments to find a Announcement + * @example + * // Get one Announcement + * const announcement = await prisma.announcement.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Find zero or more Announcements that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AnnouncementFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Announcements + * const announcements = await prisma.announcement.findMany() + * + * // Get first 10 Announcements + * const announcements = await prisma.announcement.findMany({ take: 10 }) + * + * // Only select the `id` + * const announcementWithIdOnly = await prisma.announcement.findMany({ select: { id: true } }) + * + */ + findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> + + /** + * Create a Announcement. + * @param {AnnouncementCreateArgs} args - Arguments to create a Announcement. + * @example + * // Create one Announcement + * const Announcement = await prisma.announcement.create({ + * data: { + * // ... data to create a Announcement + * } + * }) + * + */ + create(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Create many Announcements. + * @param {AnnouncementCreateManyArgs} args - Arguments to create many Announcements. + * @example + * // Create many Announcements + * const announcement = await prisma.announcement.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Announcements and returns the data saved in the database. + * @param {AnnouncementCreateManyAndReturnArgs} args - Arguments to create many Announcements. + * @example + * // Create many Announcements + * const announcement = await prisma.announcement.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Announcements and only return the `id` + * const announcementWithIdOnly = await prisma.announcement.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> + + /** + * Delete a Announcement. + * @param {AnnouncementDeleteArgs} args - Arguments to delete one Announcement. + * @example + * // Delete one Announcement + * const Announcement = await prisma.announcement.delete({ + * where: { + * // ... filter to delete one Announcement + * } + * }) + * + */ + delete(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Update one Announcement. + * @param {AnnouncementUpdateArgs} args - Arguments to update one Announcement. + * @example + * // Update one Announcement + * const announcement = await prisma.announcement.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Delete zero or more Announcements. + * @param {AnnouncementDeleteManyArgs} args - Arguments to filter Announcements to delete. + * @example + * // Delete a few Announcements + * const { count } = await prisma.announcement.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Announcements. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AnnouncementUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Announcements + * const announcement = await prisma.announcement.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Announcements and returns the data updated in the database. + * @param {AnnouncementUpdateManyAndReturnArgs} args - Arguments to update many Announcements. + * @example + * // Update many Announcements + * const announcement = await prisma.announcement.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Announcements and only return the `id` + * const announcementWithIdOnly = await prisma.announcement.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> + + /** + * Create or update one Announcement. + * @param {AnnouncementUpsertArgs} args - Arguments to update or create a Announcement. + * @example + * // Update or create a Announcement + * const announcement = await prisma.announcement.upsert({ + * create: { + * // ... data to create a Announcement + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Announcement we want to update + * } + * }) + */ + upsert(args: SelectSubset>): Prisma__AnnouncementClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> + + + /** + * Count the number of Announcements. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AnnouncementCountArgs} args - Arguments to filter Announcements to count. + * @example + * // Count the number of Announcements + * const count = await prisma.announcement.count({ + * where: { + * // ... the filter for the Announcements we want to count + * } + * }) + **/ + count( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Announcement. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AnnouncementAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Subset): Prisma.PrismaPromise> + + /** + * Group by Announcement. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AnnouncementGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AnnouncementGroupByArgs, + HasSelectOrTake extends Or< + Extends<'skip', Keys>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: AnnouncementGroupByArgs['orderBy'] } + : { orderBy?: AnnouncementGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAnnouncementGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Announcement model + */ + readonly fields: AnnouncementFieldRefs; + } + + /** + * The delegate class that acts as a "Promise-like" for Announcement. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ + export interface Prisma__AnnouncementClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + author = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the Announcement model + */ + interface AnnouncementFieldRefs { + readonly id: FieldRef<"Announcement", 'String'> + readonly title: FieldRef<"Announcement", 'String'> + readonly content: FieldRef<"Announcement", 'String'> + readonly createdAt: FieldRef<"Announcement", 'DateTime'> + readonly updatedAt: FieldRef<"Announcement", 'DateTime'> + readonly authorId: FieldRef<"Announcement", 'String'> + readonly targetRoles: FieldRef<"Announcement", 'String[]'> + } + + + // Custom InputTypes + /** + * Announcement findUnique + */ + export type AnnouncementFindUniqueArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + /** + * Filter, which Announcement to fetch. + */ + where: AnnouncementWhereUniqueInput + } + + /** + * Announcement findUniqueOrThrow + */ + export type AnnouncementFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + /** + * Filter, which Announcement to fetch. + */ + where: AnnouncementWhereUniqueInput + } + + /** + * Announcement findFirst + */ + export type AnnouncementFindFirstArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + /** + * Filter, which Announcement to fetch. + */ + where?: AnnouncementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Announcements to fetch. + */ + orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Announcements. + */ + cursor?: AnnouncementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Announcements from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Announcements. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Announcements. + */ + distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[] + } + + /** + * Announcement findFirstOrThrow + */ + export type AnnouncementFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + /** + * Filter, which Announcement to fetch. + */ + where?: AnnouncementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Announcements to fetch. + */ + orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Announcements. + */ + cursor?: AnnouncementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Announcements from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Announcements. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Announcements. + */ + distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[] + } + + /** + * Announcement findMany + */ + export type AnnouncementFindManyArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + /** + * Filter, which Announcements to fetch. + */ + where?: AnnouncementWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Announcements to fetch. + */ + orderBy?: AnnouncementOrderByWithRelationInput | AnnouncementOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Announcements. + */ + cursor?: AnnouncementWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Announcements from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Announcements. + */ + skip?: number + distinct?: AnnouncementScalarFieldEnum | AnnouncementScalarFieldEnum[] + } + + /** + * Announcement create + */ + export type AnnouncementCreateArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + /** + * The data needed to create a Announcement. + */ + data: XOR + } + + /** + * Announcement createMany + */ + export type AnnouncementCreateManyArgs = { + /** + * The data used to create many Announcements. + */ + data: AnnouncementCreateManyInput | AnnouncementCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * Announcement createManyAndReturn + */ + export type AnnouncementCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * The data used to create many Announcements. + */ + data: AnnouncementCreateManyInput | AnnouncementCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementIncludeCreateManyAndReturn | null + } + + /** + * Announcement update + */ + export type AnnouncementUpdateArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + /** + * The data needed to update a Announcement. + */ + data: XOR + /** + * Choose, which Announcement to update. + */ + where: AnnouncementWhereUniqueInput + } + + /** + * Announcement updateMany + */ + export type AnnouncementUpdateManyArgs = { + /** + * The data used to update Announcements. + */ + data: XOR + /** + * Filter which Announcements to update + */ + where?: AnnouncementWhereInput + /** + * Limit how many Announcements to update. + */ + limit?: number + } + + /** + * Announcement updateManyAndReturn + */ + export type AnnouncementUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * The data used to update Announcements. + */ + data: XOR + /** + * Filter which Announcements to update + */ + where?: AnnouncementWhereInput + /** + * Limit how many Announcements to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementIncludeUpdateManyAndReturn | null + } + + /** + * Announcement upsert + */ + export type AnnouncementUpsertArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + /** + * The filter to search for the Announcement to update in case it exists. + */ + where: AnnouncementWhereUniqueInput + /** + * In case the Announcement found by the `where` argument doesn't exist, create a new Announcement with this data. + */ + create: XOR + /** + * In case the Announcement was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * Announcement delete + */ + export type AnnouncementDeleteArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + /** + * Filter which Announcement to delete. + */ + where: AnnouncementWhereUniqueInput + } + + /** + * Announcement deleteMany + */ + export type AnnouncementDeleteManyArgs = { + /** + * Filter which Announcements to delete + */ + where?: AnnouncementWhereInput + /** + * Limit how many Announcements to delete. + */ + limit?: number + } + + /** + * Announcement without action + */ + export type AnnouncementDefaultArgs = { + /** + * Select specific fields to fetch from the Announcement + */ + select?: AnnouncementSelect | null + /** + * Omit specific fields from the Announcement + */ + omit?: AnnouncementOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AnnouncementInclude | null + } + + + /** + * Model Mission + */ + + export type AggregateMission = { + _count: MissionCountAggregateOutputType | null + _min: MissionMinAggregateOutputType | null + _max: MissionMaxAggregateOutputType | null + } + + export type MissionMinAggregateOutputType = { + id: string | null + name: string | null + logo: string | null + niveau: string | null + intention: string | null + missionType: string | null + donneurDOrdre: string | null + projection: string | null + participation: string | null + createdAt: Date | null + updatedAt: Date | null + creatorId: string | null + } + + export type MissionMaxAggregateOutputType = { + id: string | null + name: string | null + logo: string | null + niveau: string | null + intention: string | null + missionType: string | null + donneurDOrdre: string | null + projection: string | null + participation: string | null + createdAt: Date | null + updatedAt: Date | null + creatorId: string | null + } + + export type MissionCountAggregateOutputType = { + id: number + name: number + logo: number + oddScope: number + niveau: number + intention: number + missionType: number + donneurDOrdre: number + projection: number + services: number + participation: number + profils: number + createdAt: number + updatedAt: number + creatorId: number + _all: number + } + + + export type MissionMinAggregateInputType = { + id?: true + name?: true + logo?: true + niveau?: true + intention?: true + missionType?: true + donneurDOrdre?: true + projection?: true + participation?: true + createdAt?: true + updatedAt?: true + creatorId?: true + } + + export type MissionMaxAggregateInputType = { + id?: true + name?: true + logo?: true + niveau?: true + intention?: true + missionType?: true + donneurDOrdre?: true + projection?: true + participation?: true + createdAt?: true + updatedAt?: true + creatorId?: true + } + + export type MissionCountAggregateInputType = { + id?: true + name?: true + logo?: true + oddScope?: true + niveau?: true + intention?: true + missionType?: true + donneurDOrdre?: true + projection?: true + services?: true + participation?: true + profils?: true + createdAt?: true + updatedAt?: true + creatorId?: true + _all?: true + } + + export type MissionAggregateArgs = { + /** + * Filter which Mission to aggregate. + */ + where?: MissionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Missions to fetch. + */ + orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: MissionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Missions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Missions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Missions + **/ + _count?: true | MissionCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: MissionMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: MissionMaxAggregateInputType + } + + export type GetMissionAggregateType = { + [P in keyof T & keyof AggregateMission]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type MissionGroupByArgs = { + where?: MissionWhereInput + orderBy?: MissionOrderByWithAggregationInput | MissionOrderByWithAggregationInput[] + by: MissionScalarFieldEnum[] | MissionScalarFieldEnum + having?: MissionScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: MissionCountAggregateInputType | true + _min?: MissionMinAggregateInputType + _max?: MissionMaxAggregateInputType + } + + export type MissionGroupByOutputType = { + id: string + name: string + logo: string | null + oddScope: string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services: string[] + participation: string | null + profils: string[] + createdAt: Date + updatedAt: Date + creatorId: string + _count: MissionCountAggregateOutputType | null + _min: MissionMinAggregateOutputType | null + _max: MissionMaxAggregateOutputType | null + } + + type GetMissionGroupByPayload = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof MissionGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type MissionSelect = $Extensions.GetSelect<{ + id?: boolean + name?: boolean + logo?: boolean + oddScope?: boolean + niveau?: boolean + intention?: boolean + missionType?: boolean + donneurDOrdre?: boolean + projection?: boolean + services?: boolean + participation?: boolean + profils?: boolean + createdAt?: boolean + updatedAt?: boolean + creatorId?: boolean + creator?: boolean | UserDefaultArgs + attachments?: boolean | Mission$attachmentsArgs + missionUsers?: boolean | Mission$missionUsersArgs + _count?: boolean | MissionCountOutputTypeDefaultArgs + }, ExtArgs["result"]["mission"]> + + export type MissionSelectCreateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + name?: boolean + logo?: boolean + oddScope?: boolean + niveau?: boolean + intention?: boolean + missionType?: boolean + donneurDOrdre?: boolean + projection?: boolean + services?: boolean + participation?: boolean + profils?: boolean + createdAt?: boolean + updatedAt?: boolean + creatorId?: boolean + creator?: boolean | UserDefaultArgs + }, ExtArgs["result"]["mission"]> + + export type MissionSelectUpdateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + name?: boolean + logo?: boolean + oddScope?: boolean + niveau?: boolean + intention?: boolean + missionType?: boolean + donneurDOrdre?: boolean + projection?: boolean + services?: boolean + participation?: boolean + profils?: boolean + createdAt?: boolean + updatedAt?: boolean + creatorId?: boolean + creator?: boolean | UserDefaultArgs + }, ExtArgs["result"]["mission"]> + + export type MissionSelectScalar = { + id?: boolean + name?: boolean + logo?: boolean + oddScope?: boolean + niveau?: boolean + intention?: boolean + missionType?: boolean + donneurDOrdre?: boolean + projection?: boolean + services?: boolean + participation?: boolean + profils?: boolean + createdAt?: boolean + updatedAt?: boolean + creatorId?: boolean + } + + export type MissionOmit = $Extensions.GetOmit<"id" | "name" | "logo" | "oddScope" | "niveau" | "intention" | "missionType" | "donneurDOrdre" | "projection" | "services" | "participation" | "profils" | "createdAt" | "updatedAt" | "creatorId", ExtArgs["result"]["mission"]> + export type MissionInclude = { + creator?: boolean | UserDefaultArgs + attachments?: boolean | Mission$attachmentsArgs + missionUsers?: boolean | Mission$missionUsersArgs + _count?: boolean | MissionCountOutputTypeDefaultArgs + } + export type MissionIncludeCreateManyAndReturn = { + creator?: boolean | UserDefaultArgs + } + export type MissionIncludeUpdateManyAndReturn = { + creator?: boolean | UserDefaultArgs + } + + export type $MissionPayload = { + name: "Mission" + objects: { + creator: Prisma.$UserPayload + attachments: Prisma.$AttachmentPayload[] + missionUsers: Prisma.$MissionUserPayload[] + } + scalars: $Extensions.GetPayloadResult<{ + id: string + name: string + logo: string | null + oddScope: string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services: string[] + participation: string | null + profils: string[] + createdAt: Date + updatedAt: Date + creatorId: string + }, ExtArgs["result"]["mission"]> + composites: {} + } + + type MissionGetPayload = $Result.GetResult + + type MissionCountArgs = + Omit & { + select?: MissionCountAggregateInputType | true + } + + export interface MissionDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Mission'], meta: { name: 'Mission' } } + /** + * Find zero or one Mission that matches the filter. + * @param {MissionFindUniqueArgs} args - Arguments to find a Mission + * @example + * // Get one Mission + * const mission = await prisma.mission.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: SelectSubset>): Prisma__MissionClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> + + /** + * Find one Mission that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {MissionFindUniqueOrThrowArgs} args - Arguments to find a Mission + * @example + * // Get one Mission + * const mission = await prisma.mission.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: SelectSubset>): Prisma__MissionClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Find the first Mission that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionFindFirstArgs} args - Arguments to find a Mission + * @example + * // Get one Mission + * const mission = await prisma.mission.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: SelectSubset>): Prisma__MissionClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> + + /** + * Find the first Mission that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionFindFirstOrThrowArgs} args - Arguments to find a Mission + * @example + * // Get one Mission + * const mission = await prisma.mission.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: SelectSubset>): Prisma__MissionClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Find zero or more Missions that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Missions + * const missions = await prisma.mission.findMany() + * + * // Get first 10 Missions + * const missions = await prisma.mission.findMany({ take: 10 }) + * + * // Only select the `id` + * const missionWithIdOnly = await prisma.mission.findMany({ select: { id: true } }) + * + */ + findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> + + /** + * Create a Mission. + * @param {MissionCreateArgs} args - Arguments to create a Mission. + * @example + * // Create one Mission + * const Mission = await prisma.mission.create({ + * data: { + * // ... data to create a Mission + * } + * }) + * + */ + create(args: SelectSubset>): Prisma__MissionClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Create many Missions. + * @param {MissionCreateManyArgs} args - Arguments to create many Missions. + * @example + * // Create many Missions + * const mission = await prisma.mission.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Missions and returns the data saved in the database. + * @param {MissionCreateManyAndReturnArgs} args - Arguments to create many Missions. + * @example + * // Create many Missions + * const mission = await prisma.mission.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Missions and only return the `id` + * const missionWithIdOnly = await prisma.mission.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> + + /** + * Delete a Mission. + * @param {MissionDeleteArgs} args - Arguments to delete one Mission. + * @example + * // Delete one Mission + * const Mission = await prisma.mission.delete({ + * where: { + * // ... filter to delete one Mission + * } + * }) + * + */ + delete(args: SelectSubset>): Prisma__MissionClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Update one Mission. + * @param {MissionUpdateArgs} args - Arguments to update one Mission. + * @example + * // Update one Mission + * const mission = await prisma.mission.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: SelectSubset>): Prisma__MissionClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Delete zero or more Missions. + * @param {MissionDeleteManyArgs} args - Arguments to filter Missions to delete. + * @example + * // Delete a few Missions + * const { count } = await prisma.mission.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Missions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Missions + * const mission = await prisma.mission.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Missions and returns the data updated in the database. + * @param {MissionUpdateManyAndReturnArgs} args - Arguments to update many Missions. + * @example + * // Update many Missions + * const mission = await prisma.mission.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Missions and only return the `id` + * const missionWithIdOnly = await prisma.mission.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> + + /** + * Create or update one Mission. + * @param {MissionUpsertArgs} args - Arguments to update or create a Mission. + * @example + * // Update or create a Mission + * const mission = await prisma.mission.upsert({ + * create: { + * // ... data to create a Mission + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Mission we want to update + * } + * }) + */ + upsert(args: SelectSubset>): Prisma__MissionClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> + + + /** + * Count the number of Missions. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionCountArgs} args - Arguments to filter Missions to count. + * @example + * // Count the number of Missions + * const count = await prisma.mission.count({ + * where: { + * // ... the filter for the Missions we want to count + * } + * }) + **/ + count( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Mission. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Subset): Prisma.PrismaPromise> + + /** + * Group by Mission. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends MissionGroupByArgs, + HasSelectOrTake extends Or< + Extends<'skip', Keys>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: MissionGroupByArgs['orderBy'] } + : { orderBy?: MissionGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetMissionGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Mission model + */ + readonly fields: MissionFieldRefs; + } + + /** + * The delegate class that acts as a "Promise-like" for Mission. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ + export interface Prisma__MissionClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + creator = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> + attachments = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> + missionUsers = {}>(args?: Subset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions> | Null> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the Mission model + */ + interface MissionFieldRefs { + readonly id: FieldRef<"Mission", 'String'> + readonly name: FieldRef<"Mission", 'String'> + readonly logo: FieldRef<"Mission", 'String'> + readonly oddScope: FieldRef<"Mission", 'String[]'> + readonly niveau: FieldRef<"Mission", 'String'> + readonly intention: FieldRef<"Mission", 'String'> + readonly missionType: FieldRef<"Mission", 'String'> + readonly donneurDOrdre: FieldRef<"Mission", 'String'> + readonly projection: FieldRef<"Mission", 'String'> + readonly services: FieldRef<"Mission", 'String[]'> + readonly participation: FieldRef<"Mission", 'String'> + readonly profils: FieldRef<"Mission", 'String[]'> + readonly createdAt: FieldRef<"Mission", 'DateTime'> + readonly updatedAt: FieldRef<"Mission", 'DateTime'> + readonly creatorId: FieldRef<"Mission", 'String'> + } + + + // Custom InputTypes + /** + * Mission findUnique + */ + export type MissionFindUniqueArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + /** + * Filter, which Mission to fetch. + */ + where: MissionWhereUniqueInput + } + + /** + * Mission findUniqueOrThrow + */ + export type MissionFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + /** + * Filter, which Mission to fetch. + */ + where: MissionWhereUniqueInput + } + + /** + * Mission findFirst + */ + export type MissionFindFirstArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + /** + * Filter, which Mission to fetch. + */ + where?: MissionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Missions to fetch. + */ + orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Missions. + */ + cursor?: MissionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Missions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Missions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Missions. + */ + distinct?: MissionScalarFieldEnum | MissionScalarFieldEnum[] + } + + /** + * Mission findFirstOrThrow + */ + export type MissionFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + /** + * Filter, which Mission to fetch. + */ + where?: MissionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Missions to fetch. + */ + orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Missions. + */ + cursor?: MissionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Missions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Missions. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Missions. + */ + distinct?: MissionScalarFieldEnum | MissionScalarFieldEnum[] + } + + /** + * Mission findMany + */ + export type MissionFindManyArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + /** + * Filter, which Missions to fetch. + */ + where?: MissionWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Missions to fetch. + */ + orderBy?: MissionOrderByWithRelationInput | MissionOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Missions. + */ + cursor?: MissionWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Missions from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Missions. + */ + skip?: number + distinct?: MissionScalarFieldEnum | MissionScalarFieldEnum[] + } + + /** + * Mission create + */ + export type MissionCreateArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + /** + * The data needed to create a Mission. + */ + data: XOR + } + + /** + * Mission createMany + */ + export type MissionCreateManyArgs = { + /** + * The data used to create many Missions. + */ + data: MissionCreateManyInput | MissionCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * Mission createManyAndReturn + */ + export type MissionCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * The data used to create many Missions. + */ + data: MissionCreateManyInput | MissionCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionIncludeCreateManyAndReturn | null + } + + /** + * Mission update + */ + export type MissionUpdateArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + /** + * The data needed to update a Mission. + */ + data: XOR + /** + * Choose, which Mission to update. + */ + where: MissionWhereUniqueInput + } + + /** + * Mission updateMany + */ + export type MissionUpdateManyArgs = { + /** + * The data used to update Missions. + */ + data: XOR + /** + * Filter which Missions to update + */ + where?: MissionWhereInput + /** + * Limit how many Missions to update. + */ + limit?: number + } + + /** + * Mission updateManyAndReturn + */ + export type MissionUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * The data used to update Missions. + */ + data: XOR + /** + * Filter which Missions to update + */ + where?: MissionWhereInput + /** + * Limit how many Missions to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionIncludeUpdateManyAndReturn | null + } + + /** + * Mission upsert + */ + export type MissionUpsertArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + /** + * The filter to search for the Mission to update in case it exists. + */ + where: MissionWhereUniqueInput + /** + * In case the Mission found by the `where` argument doesn't exist, create a new Mission with this data. + */ + create: XOR + /** + * In case the Mission was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * Mission delete + */ + export type MissionDeleteArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + /** + * Filter which Mission to delete. + */ + where: MissionWhereUniqueInput + } + + /** + * Mission deleteMany + */ + export type MissionDeleteManyArgs = { + /** + * Filter which Missions to delete + */ + where?: MissionWhereInput + /** + * Limit how many Missions to delete. + */ + limit?: number + } + + /** + * Mission.attachments + */ + export type Mission$attachmentsArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + where?: AttachmentWhereInput + orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[] + cursor?: AttachmentWhereUniqueInput + take?: number + skip?: number + distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[] + } + + /** + * Mission.missionUsers + */ + export type Mission$missionUsersArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + where?: MissionUserWhereInput + orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[] + cursor?: MissionUserWhereUniqueInput + take?: number + skip?: number + distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[] + } + + /** + * Mission without action + */ + export type MissionDefaultArgs = { + /** + * Select specific fields to fetch from the Mission + */ + select?: MissionSelect | null + /** + * Omit specific fields from the Mission + */ + omit?: MissionOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionInclude | null + } + + + /** + * Model Attachment + */ + + export type AggregateAttachment = { + _count: AttachmentCountAggregateOutputType | null + _avg: AttachmentAvgAggregateOutputType | null + _sum: AttachmentSumAggregateOutputType | null + _min: AttachmentMinAggregateOutputType | null + _max: AttachmentMaxAggregateOutputType | null + } + + export type AttachmentAvgAggregateOutputType = { + fileSize: number | null + } + + export type AttachmentSumAggregateOutputType = { + fileSize: number | null + } + + export type AttachmentMinAggregateOutputType = { + id: string | null + filename: string | null + filePath: string | null + fileType: string | null + fileSize: number | null + createdAt: Date | null + updatedAt: Date | null + missionId: string | null + uploaderId: string | null + } + + export type AttachmentMaxAggregateOutputType = { + id: string | null + filename: string | null + filePath: string | null + fileType: string | null + fileSize: number | null + createdAt: Date | null + updatedAt: Date | null + missionId: string | null + uploaderId: string | null + } + + export type AttachmentCountAggregateOutputType = { + id: number + filename: number + filePath: number + fileType: number + fileSize: number + createdAt: number + updatedAt: number + missionId: number + uploaderId: number + _all: number + } + + + export type AttachmentAvgAggregateInputType = { + fileSize?: true + } + + export type AttachmentSumAggregateInputType = { + fileSize?: true + } + + export type AttachmentMinAggregateInputType = { + id?: true + filename?: true + filePath?: true + fileType?: true + fileSize?: true + createdAt?: true + updatedAt?: true + missionId?: true + uploaderId?: true + } + + export type AttachmentMaxAggregateInputType = { + id?: true + filename?: true + filePath?: true + fileType?: true + fileSize?: true + createdAt?: true + updatedAt?: true + missionId?: true + uploaderId?: true + } + + export type AttachmentCountAggregateInputType = { + id?: true + filename?: true + filePath?: true + fileType?: true + fileSize?: true + createdAt?: true + updatedAt?: true + missionId?: true + uploaderId?: true + _all?: true + } + + export type AttachmentAggregateArgs = { + /** + * Filter which Attachment to aggregate. + */ + where?: AttachmentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Attachments to fetch. + */ + orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: AttachmentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Attachments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Attachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Attachments + **/ + _count?: true | AttachmentCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: AttachmentAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: AttachmentSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: AttachmentMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: AttachmentMaxAggregateInputType + } + + export type GetAttachmentAggregateType = { + [P in keyof T & keyof AggregateAttachment]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type AttachmentGroupByArgs = { + where?: AttachmentWhereInput + orderBy?: AttachmentOrderByWithAggregationInput | AttachmentOrderByWithAggregationInput[] + by: AttachmentScalarFieldEnum[] | AttachmentScalarFieldEnum + having?: AttachmentScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: AttachmentCountAggregateInputType | true + _avg?: AttachmentAvgAggregateInputType + _sum?: AttachmentSumAggregateInputType + _min?: AttachmentMinAggregateInputType + _max?: AttachmentMaxAggregateInputType + } + + export type AttachmentGroupByOutputType = { + id: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt: Date + updatedAt: Date + missionId: string + uploaderId: string + _count: AttachmentCountAggregateOutputType | null + _avg: AttachmentAvgAggregateOutputType | null + _sum: AttachmentSumAggregateOutputType | null + _min: AttachmentMinAggregateOutputType | null + _max: AttachmentMaxAggregateOutputType | null + } + + type GetAttachmentGroupByPayload = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof AttachmentGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type AttachmentSelect = $Extensions.GetSelect<{ + id?: boolean + filename?: boolean + filePath?: boolean + fileType?: boolean + fileSize?: boolean + createdAt?: boolean + updatedAt?: boolean + missionId?: boolean + uploaderId?: boolean + mission?: boolean | MissionDefaultArgs + uploader?: boolean | UserDefaultArgs + }, ExtArgs["result"]["attachment"]> + + export type AttachmentSelectCreateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + filename?: boolean + filePath?: boolean + fileType?: boolean + fileSize?: boolean + createdAt?: boolean + updatedAt?: boolean + missionId?: boolean + uploaderId?: boolean + mission?: boolean | MissionDefaultArgs + uploader?: boolean | UserDefaultArgs + }, ExtArgs["result"]["attachment"]> + + export type AttachmentSelectUpdateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + filename?: boolean + filePath?: boolean + fileType?: boolean + fileSize?: boolean + createdAt?: boolean + updatedAt?: boolean + missionId?: boolean + uploaderId?: boolean + mission?: boolean | MissionDefaultArgs + uploader?: boolean | UserDefaultArgs + }, ExtArgs["result"]["attachment"]> + + export type AttachmentSelectScalar = { + id?: boolean + filename?: boolean + filePath?: boolean + fileType?: boolean + fileSize?: boolean + createdAt?: boolean + updatedAt?: boolean + missionId?: boolean + uploaderId?: boolean + } + + export type AttachmentOmit = $Extensions.GetOmit<"id" | "filename" | "filePath" | "fileType" | "fileSize" | "createdAt" | "updatedAt" | "missionId" | "uploaderId", ExtArgs["result"]["attachment"]> + export type AttachmentInclude = { + mission?: boolean | MissionDefaultArgs + uploader?: boolean | UserDefaultArgs + } + export type AttachmentIncludeCreateManyAndReturn = { + mission?: boolean | MissionDefaultArgs + uploader?: boolean | UserDefaultArgs + } + export type AttachmentIncludeUpdateManyAndReturn = { + mission?: boolean | MissionDefaultArgs + uploader?: boolean | UserDefaultArgs + } + + export type $AttachmentPayload = { + name: "Attachment" + objects: { + mission: Prisma.$MissionPayload + uploader: Prisma.$UserPayload + } + scalars: $Extensions.GetPayloadResult<{ + id: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt: Date + updatedAt: Date + missionId: string + uploaderId: string + }, ExtArgs["result"]["attachment"]> + composites: {} + } + + type AttachmentGetPayload = $Result.GetResult + + type AttachmentCountArgs = + Omit & { + select?: AttachmentCountAggregateInputType | true + } + + export interface AttachmentDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Attachment'], meta: { name: 'Attachment' } } + /** + * Find zero or one Attachment that matches the filter. + * @param {AttachmentFindUniqueArgs} args - Arguments to find a Attachment + * @example + * // Get one Attachment + * const attachment = await prisma.attachment.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: SelectSubset>): Prisma__AttachmentClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> + + /** + * Find one Attachment that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {AttachmentFindUniqueOrThrowArgs} args - Arguments to find a Attachment + * @example + * // Get one Attachment + * const attachment = await prisma.attachment.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: SelectSubset>): Prisma__AttachmentClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Find the first Attachment that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentFindFirstArgs} args - Arguments to find a Attachment + * @example + * // Get one Attachment + * const attachment = await prisma.attachment.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: SelectSubset>): Prisma__AttachmentClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> + + /** + * Find the first Attachment that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentFindFirstOrThrowArgs} args - Arguments to find a Attachment + * @example + * // Get one Attachment + * const attachment = await prisma.attachment.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: SelectSubset>): Prisma__AttachmentClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Find zero or more Attachments that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Attachments + * const attachments = await prisma.attachment.findMany() + * + * // Get first 10 Attachments + * const attachments = await prisma.attachment.findMany({ take: 10 }) + * + * // Only select the `id` + * const attachmentWithIdOnly = await prisma.attachment.findMany({ select: { id: true } }) + * + */ + findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> + + /** + * Create a Attachment. + * @param {AttachmentCreateArgs} args - Arguments to create a Attachment. + * @example + * // Create one Attachment + * const Attachment = await prisma.attachment.create({ + * data: { + * // ... data to create a Attachment + * } + * }) + * + */ + create(args: SelectSubset>): Prisma__AttachmentClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Create many Attachments. + * @param {AttachmentCreateManyArgs} args - Arguments to create many Attachments. + * @example + * // Create many Attachments + * const attachment = await prisma.attachment.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Attachments and returns the data saved in the database. + * @param {AttachmentCreateManyAndReturnArgs} args - Arguments to create many Attachments. + * @example + * // Create many Attachments + * const attachment = await prisma.attachment.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Attachments and only return the `id` + * const attachmentWithIdOnly = await prisma.attachment.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> + + /** + * Delete a Attachment. + * @param {AttachmentDeleteArgs} args - Arguments to delete one Attachment. + * @example + * // Delete one Attachment + * const Attachment = await prisma.attachment.delete({ + * where: { + * // ... filter to delete one Attachment + * } + * }) + * + */ + delete(args: SelectSubset>): Prisma__AttachmentClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Update one Attachment. + * @param {AttachmentUpdateArgs} args - Arguments to update one Attachment. + * @example + * // Update one Attachment + * const attachment = await prisma.attachment.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: SelectSubset>): Prisma__AttachmentClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Delete zero or more Attachments. + * @param {AttachmentDeleteManyArgs} args - Arguments to filter Attachments to delete. + * @example + * // Delete a few Attachments + * const { count } = await prisma.attachment.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Attachments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Attachments + * const attachment = await prisma.attachment.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Attachments and returns the data updated in the database. + * @param {AttachmentUpdateManyAndReturnArgs} args - Arguments to update many Attachments. + * @example + * // Update many Attachments + * const attachment = await prisma.attachment.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Attachments and only return the `id` + * const attachmentWithIdOnly = await prisma.attachment.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> + + /** + * Create or update one Attachment. + * @param {AttachmentUpsertArgs} args - Arguments to update or create a Attachment. + * @example + * // Update or create a Attachment + * const attachment = await prisma.attachment.upsert({ + * create: { + * // ... data to create a Attachment + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Attachment we want to update + * } + * }) + */ + upsert(args: SelectSubset>): Prisma__AttachmentClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> + + + /** + * Count the number of Attachments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentCountArgs} args - Arguments to filter Attachments to count. + * @example + * // Count the number of Attachments + * const count = await prisma.attachment.count({ + * where: { + * // ... the filter for the Attachments we want to count + * } + * }) + **/ + count( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Attachment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Subset): Prisma.PrismaPromise> + + /** + * Group by Attachment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {AttachmentGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends AttachmentGroupByArgs, + HasSelectOrTake extends Or< + Extends<'skip', Keys>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: AttachmentGroupByArgs['orderBy'] } + : { orderBy?: AttachmentGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetAttachmentGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the Attachment model + */ + readonly fields: AttachmentFieldRefs; + } + + /** + * The delegate class that acts as a "Promise-like" for Attachment. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ + export interface Prisma__AttachmentClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + mission = {}>(args?: Subset>): Prisma__MissionClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> + uploader = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the Attachment model + */ + interface AttachmentFieldRefs { + readonly id: FieldRef<"Attachment", 'String'> + readonly filename: FieldRef<"Attachment", 'String'> + readonly filePath: FieldRef<"Attachment", 'String'> + readonly fileType: FieldRef<"Attachment", 'String'> + readonly fileSize: FieldRef<"Attachment", 'Int'> + readonly createdAt: FieldRef<"Attachment", 'DateTime'> + readonly updatedAt: FieldRef<"Attachment", 'DateTime'> + readonly missionId: FieldRef<"Attachment", 'String'> + readonly uploaderId: FieldRef<"Attachment", 'String'> + } + + + // Custom InputTypes + /** + * Attachment findUnique + */ + export type AttachmentFindUniqueArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + /** + * Filter, which Attachment to fetch. + */ + where: AttachmentWhereUniqueInput + } + + /** + * Attachment findUniqueOrThrow + */ + export type AttachmentFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + /** + * Filter, which Attachment to fetch. + */ + where: AttachmentWhereUniqueInput + } + + /** + * Attachment findFirst + */ + export type AttachmentFindFirstArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + /** + * Filter, which Attachment to fetch. + */ + where?: AttachmentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Attachments to fetch. + */ + orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Attachments. + */ + cursor?: AttachmentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Attachments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Attachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Attachments. + */ + distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[] + } + + /** + * Attachment findFirstOrThrow + */ + export type AttachmentFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + /** + * Filter, which Attachment to fetch. + */ + where?: AttachmentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Attachments to fetch. + */ + orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Attachments. + */ + cursor?: AttachmentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Attachments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Attachments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Attachments. + */ + distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[] + } + + /** + * Attachment findMany + */ + export type AttachmentFindManyArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + /** + * Filter, which Attachments to fetch. + */ + where?: AttachmentWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Attachments to fetch. + */ + orderBy?: AttachmentOrderByWithRelationInput | AttachmentOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Attachments. + */ + cursor?: AttachmentWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Attachments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Attachments. + */ + skip?: number + distinct?: AttachmentScalarFieldEnum | AttachmentScalarFieldEnum[] + } + + /** + * Attachment create + */ + export type AttachmentCreateArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + /** + * The data needed to create a Attachment. + */ + data: XOR + } + + /** + * Attachment createMany + */ + export type AttachmentCreateManyArgs = { + /** + * The data used to create many Attachments. + */ + data: AttachmentCreateManyInput | AttachmentCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * Attachment createManyAndReturn + */ + export type AttachmentCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * The data used to create many Attachments. + */ + data: AttachmentCreateManyInput | AttachmentCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentIncludeCreateManyAndReturn | null + } + + /** + * Attachment update + */ + export type AttachmentUpdateArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + /** + * The data needed to update a Attachment. + */ + data: XOR + /** + * Choose, which Attachment to update. + */ + where: AttachmentWhereUniqueInput + } + + /** + * Attachment updateMany + */ + export type AttachmentUpdateManyArgs = { + /** + * The data used to update Attachments. + */ + data: XOR + /** + * Filter which Attachments to update + */ + where?: AttachmentWhereInput + /** + * Limit how many Attachments to update. + */ + limit?: number + } + + /** + * Attachment updateManyAndReturn + */ + export type AttachmentUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * The data used to update Attachments. + */ + data: XOR + /** + * Filter which Attachments to update + */ + where?: AttachmentWhereInput + /** + * Limit how many Attachments to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentIncludeUpdateManyAndReturn | null + } + + /** + * Attachment upsert + */ + export type AttachmentUpsertArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + /** + * The filter to search for the Attachment to update in case it exists. + */ + where: AttachmentWhereUniqueInput + /** + * In case the Attachment found by the `where` argument doesn't exist, create a new Attachment with this data. + */ + create: XOR + /** + * In case the Attachment was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * Attachment delete + */ + export type AttachmentDeleteArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + /** + * Filter which Attachment to delete. + */ + where: AttachmentWhereUniqueInput + } + + /** + * Attachment deleteMany + */ + export type AttachmentDeleteManyArgs = { + /** + * Filter which Attachments to delete + */ + where?: AttachmentWhereInput + /** + * Limit how many Attachments to delete. + */ + limit?: number + } + + /** + * Attachment without action + */ + export type AttachmentDefaultArgs = { + /** + * Select specific fields to fetch from the Attachment + */ + select?: AttachmentSelect | null + /** + * Omit specific fields from the Attachment + */ + omit?: AttachmentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: AttachmentInclude | null + } + + + /** + * Model MissionUser + */ + + export type AggregateMissionUser = { + _count: MissionUserCountAggregateOutputType | null + _min: MissionUserMinAggregateOutputType | null + _max: MissionUserMaxAggregateOutputType | null + } + + export type MissionUserMinAggregateOutputType = { + id: string | null + role: string | null + createdAt: Date | null + updatedAt: Date | null + missionId: string | null + userId: string | null + } + + export type MissionUserMaxAggregateOutputType = { + id: string | null + role: string | null + createdAt: Date | null + updatedAt: Date | null + missionId: string | null + userId: string | null + } + + export type MissionUserCountAggregateOutputType = { + id: number + role: number + createdAt: number + updatedAt: number + missionId: number + userId: number + _all: number + } + + + export type MissionUserMinAggregateInputType = { + id?: true + role?: true + createdAt?: true + updatedAt?: true + missionId?: true + userId?: true + } + + export type MissionUserMaxAggregateInputType = { + id?: true + role?: true + createdAt?: true + updatedAt?: true + missionId?: true + userId?: true + } + + export type MissionUserCountAggregateInputType = { + id?: true + role?: true + createdAt?: true + updatedAt?: true + missionId?: true + userId?: true + _all?: true + } + + export type MissionUserAggregateArgs = { + /** + * Filter which MissionUser to aggregate. + */ + where?: MissionUserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MissionUsers to fetch. + */ + orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: MissionUserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MissionUsers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` MissionUsers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned MissionUsers + **/ + _count?: true | MissionUserCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: MissionUserMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: MissionUserMaxAggregateInputType + } + + export type GetMissionUserAggregateType = { + [P in keyof T & keyof AggregateMissionUser]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : GetScalarType + : GetScalarType + } + + + + + export type MissionUserGroupByArgs = { + where?: MissionUserWhereInput + orderBy?: MissionUserOrderByWithAggregationInput | MissionUserOrderByWithAggregationInput[] + by: MissionUserScalarFieldEnum[] | MissionUserScalarFieldEnum + having?: MissionUserScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: MissionUserCountAggregateInputType | true + _min?: MissionUserMinAggregateInputType + _max?: MissionUserMaxAggregateInputType + } + + export type MissionUserGroupByOutputType = { + id: string + role: string + createdAt: Date + updatedAt: Date + missionId: string + userId: string + _count: MissionUserCountAggregateOutputType | null + _min: MissionUserMinAggregateOutputType | null + _max: MissionUserMaxAggregateOutputType | null + } + + type GetMissionUserGroupByPayload = Prisma.PrismaPromise< + Array< + PickEnumerable & + { + [P in ((keyof T) & (keyof MissionUserGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : GetScalarType + : GetScalarType + } + > + > + + + export type MissionUserSelect = $Extensions.GetSelect<{ + id?: boolean + role?: boolean + createdAt?: boolean + updatedAt?: boolean + missionId?: boolean + userId?: boolean + mission?: boolean | MissionDefaultArgs + user?: boolean | UserDefaultArgs + }, ExtArgs["result"]["missionUser"]> + + export type MissionUserSelectCreateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + role?: boolean + createdAt?: boolean + updatedAt?: boolean + missionId?: boolean + userId?: boolean + mission?: boolean | MissionDefaultArgs + user?: boolean | UserDefaultArgs + }, ExtArgs["result"]["missionUser"]> + + export type MissionUserSelectUpdateManyAndReturn = $Extensions.GetSelect<{ + id?: boolean + role?: boolean + createdAt?: boolean + updatedAt?: boolean + missionId?: boolean + userId?: boolean + mission?: boolean | MissionDefaultArgs + user?: boolean | UserDefaultArgs + }, ExtArgs["result"]["missionUser"]> + + export type MissionUserSelectScalar = { + id?: boolean + role?: boolean + createdAt?: boolean + updatedAt?: boolean + missionId?: boolean + userId?: boolean + } + + export type MissionUserOmit = $Extensions.GetOmit<"id" | "role" | "createdAt" | "updatedAt" | "missionId" | "userId", ExtArgs["result"]["missionUser"]> + export type MissionUserInclude = { + mission?: boolean | MissionDefaultArgs + user?: boolean | UserDefaultArgs + } + export type MissionUserIncludeCreateManyAndReturn = { + mission?: boolean | MissionDefaultArgs + user?: boolean | UserDefaultArgs + } + export type MissionUserIncludeUpdateManyAndReturn = { + mission?: boolean | MissionDefaultArgs + user?: boolean | UserDefaultArgs + } + + export type $MissionUserPayload = { + name: "MissionUser" + objects: { + mission: Prisma.$MissionPayload + user: Prisma.$UserPayload + } + scalars: $Extensions.GetPayloadResult<{ + id: string + role: string + createdAt: Date + updatedAt: Date + missionId: string + userId: string + }, ExtArgs["result"]["missionUser"]> + composites: {} + } + + type MissionUserGetPayload = $Result.GetResult + + type MissionUserCountArgs = + Omit & { + select?: MissionUserCountAggregateInputType | true + } + + export interface MissionUserDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['MissionUser'], meta: { name: 'MissionUser' } } + /** + * Find zero or one MissionUser that matches the filter. + * @param {MissionUserFindUniqueArgs} args - Arguments to find a MissionUser + * @example + * // Get one MissionUser + * const missionUser = await prisma.missionUser.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: SelectSubset>): Prisma__MissionUserClient<$Result.GetResult, T, "findUnique", ClientOptions> | null, null, ExtArgs, ClientOptions> + + /** + * Find one MissionUser that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {MissionUserFindUniqueOrThrowArgs} args - Arguments to find a MissionUser + * @example + * // Get one MissionUser + * const missionUser = await prisma.missionUser.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: SelectSubset>): Prisma__MissionUserClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Find the first MissionUser that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionUserFindFirstArgs} args - Arguments to find a MissionUser + * @example + * // Get one MissionUser + * const missionUser = await prisma.missionUser.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: SelectSubset>): Prisma__MissionUserClient<$Result.GetResult, T, "findFirst", ClientOptions> | null, null, ExtArgs, ClientOptions> + + /** + * Find the first MissionUser that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionUserFindFirstOrThrowArgs} args - Arguments to find a MissionUser + * @example + * // Get one MissionUser + * const missionUser = await prisma.missionUser.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: SelectSubset>): Prisma__MissionUserClient<$Result.GetResult, T, "findFirstOrThrow", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Find zero or more MissionUsers that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionUserFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all MissionUsers + * const missionUsers = await prisma.missionUser.findMany() + * + * // Get first 10 MissionUsers + * const missionUsers = await prisma.missionUser.findMany({ take: 10 }) + * + * // Only select the `id` + * const missionUserWithIdOnly = await prisma.missionUser.findMany({ select: { id: true } }) + * + */ + findMany(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "findMany", ClientOptions>> + + /** + * Create a MissionUser. + * @param {MissionUserCreateArgs} args - Arguments to create a MissionUser. + * @example + * // Create one MissionUser + * const MissionUser = await prisma.missionUser.create({ + * data: { + * // ... data to create a MissionUser + * } + * }) + * + */ + create(args: SelectSubset>): Prisma__MissionUserClient<$Result.GetResult, T, "create", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Create many MissionUsers. + * @param {MissionUserCreateManyArgs} args - Arguments to create many MissionUsers. + * @example + * // Create many MissionUsers + * const missionUser = await prisma.missionUser.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Create many MissionUsers and returns the data saved in the database. + * @param {MissionUserCreateManyAndReturnArgs} args - Arguments to create many MissionUsers. + * @example + * // Create many MissionUsers + * const missionUser = await prisma.missionUser.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many MissionUsers and only return the `id` + * const missionUserWithIdOnly = await prisma.missionUser.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "createManyAndReturn", ClientOptions>> + + /** + * Delete a MissionUser. + * @param {MissionUserDeleteArgs} args - Arguments to delete one MissionUser. + * @example + * // Delete one MissionUser + * const MissionUser = await prisma.missionUser.delete({ + * where: { + * // ... filter to delete one MissionUser + * } + * }) + * + */ + delete(args: SelectSubset>): Prisma__MissionUserClient<$Result.GetResult, T, "delete", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Update one MissionUser. + * @param {MissionUserUpdateArgs} args - Arguments to update one MissionUser. + * @example + * // Update one MissionUser + * const missionUser = await prisma.missionUser.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: SelectSubset>): Prisma__MissionUserClient<$Result.GetResult, T, "update", ClientOptions>, never, ExtArgs, ClientOptions> + + /** + * Delete zero or more MissionUsers. + * @param {MissionUserDeleteManyArgs} args - Arguments to filter MissionUsers to delete. + * @example + * // Delete a few MissionUsers + * const { count } = await prisma.missionUser.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more MissionUsers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionUserUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many MissionUsers + * const missionUser = await prisma.missionUser.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more MissionUsers and returns the data updated in the database. + * @param {MissionUserUpdateManyAndReturnArgs} args - Arguments to update many MissionUsers. + * @example + * // Update many MissionUsers + * const missionUser = await prisma.missionUser.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more MissionUsers and only return the `id` + * const missionUserWithIdOnly = await prisma.missionUser.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: SelectSubset>): Prisma.PrismaPromise<$Result.GetResult, T, "updateManyAndReturn", ClientOptions>> + + /** + * Create or update one MissionUser. + * @param {MissionUserUpsertArgs} args - Arguments to update or create a MissionUser. + * @example + * // Update or create a MissionUser + * const missionUser = await prisma.missionUser.upsert({ + * create: { + * // ... data to create a MissionUser + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the MissionUser we want to update + * } + * }) + */ + upsert(args: SelectSubset>): Prisma__MissionUserClient<$Result.GetResult, T, "upsert", ClientOptions>, never, ExtArgs, ClientOptions> + + + /** + * Count the number of MissionUsers. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionUserCountArgs} args - Arguments to filter MissionUsers to count. + * @example + * // Count the number of MissionUsers + * const count = await prisma.missionUser.count({ + * where: { + * // ... the filter for the MissionUsers we want to count + * } + * }) + **/ + count( + args?: Subset, + ): Prisma.PrismaPromise< + T extends $Utils.Record<'select', any> + ? T['select'] extends true + ? number + : GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a MissionUser. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionUserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Subset): Prisma.PrismaPromise> + + /** + * Group by MissionUser. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {MissionUserGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends MissionUserGroupByArgs, + HasSelectOrTake extends Or< + Extends<'skip', Keys>, + Extends<'take', Keys> + >, + OrderByArg extends True extends HasSelectOrTake + ? { orderBy: MissionUserGroupByArgs['orderBy'] } + : { orderBy?: MissionUserGroupByArgs['orderBy'] }, + OrderFields extends ExcludeUnderscoreKeys>>, + ByFields extends MaybeTupleToUnion, + ByValid extends Has, + HavingFields extends GetHavingFields, + HavingValid extends Has, + ByEmpty extends T['by'] extends never[] ? True : False, + InputErrors extends ByEmpty extends True + ? `Error: "by" must not be empty.` + : HavingValid extends False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Keys + ? 'orderBy' extends Keys + ? ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: SubsetIntersection & InputErrors): {} extends InputErrors ? GetMissionUserGroupByPayload : Prisma.PrismaPromise + /** + * Fields of the MissionUser model + */ + readonly fields: MissionUserFieldRefs; + } + + /** + * The delegate class that acts as a "Promise-like" for MissionUser. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ + export interface Prisma__MissionUserClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + mission = {}>(args?: Subset>): Prisma__MissionClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> + user = {}>(args?: Subset>): Prisma__UserClient<$Result.GetResult, T, "findUniqueOrThrow", ClientOptions> | Null, Null, ExtArgs, ClientOptions> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): $Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise + } + + + + + /** + * Fields of the MissionUser model + */ + interface MissionUserFieldRefs { + readonly id: FieldRef<"MissionUser", 'String'> + readonly role: FieldRef<"MissionUser", 'String'> + readonly createdAt: FieldRef<"MissionUser", 'DateTime'> + readonly updatedAt: FieldRef<"MissionUser", 'DateTime'> + readonly missionId: FieldRef<"MissionUser", 'String'> + readonly userId: FieldRef<"MissionUser", 'String'> + } + + + // Custom InputTypes + /** + * MissionUser findUnique + */ + export type MissionUserFindUniqueArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + /** + * Filter, which MissionUser to fetch. + */ + where: MissionUserWhereUniqueInput + } + + /** + * MissionUser findUniqueOrThrow + */ + export type MissionUserFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + /** + * Filter, which MissionUser to fetch. + */ + where: MissionUserWhereUniqueInput + } + + /** + * MissionUser findFirst + */ + export type MissionUserFindFirstArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + /** + * Filter, which MissionUser to fetch. + */ + where?: MissionUserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MissionUsers to fetch. + */ + orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for MissionUsers. + */ + cursor?: MissionUserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MissionUsers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` MissionUsers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MissionUsers. + */ + distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[] + } + + /** + * MissionUser findFirstOrThrow + */ + export type MissionUserFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + /** + * Filter, which MissionUser to fetch. + */ + where?: MissionUserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MissionUsers to fetch. + */ + orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for MissionUsers. + */ + cursor?: MissionUserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MissionUsers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` MissionUsers. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of MissionUsers. + */ + distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[] + } + + /** + * MissionUser findMany + */ + export type MissionUserFindManyArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + /** + * Filter, which MissionUsers to fetch. + */ + where?: MissionUserWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of MissionUsers to fetch. + */ + orderBy?: MissionUserOrderByWithRelationInput | MissionUserOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing MissionUsers. + */ + cursor?: MissionUserWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` MissionUsers from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` MissionUsers. + */ + skip?: number + distinct?: MissionUserScalarFieldEnum | MissionUserScalarFieldEnum[] + } + + /** + * MissionUser create + */ + export type MissionUserCreateArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + /** + * The data needed to create a MissionUser. + */ + data: XOR + } + + /** + * MissionUser createMany + */ + export type MissionUserCreateManyArgs = { + /** + * The data used to create many MissionUsers. + */ + data: MissionUserCreateManyInput | MissionUserCreateManyInput[] + skipDuplicates?: boolean + } + + /** + * MissionUser createManyAndReturn + */ + export type MissionUserCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelectCreateManyAndReturn | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * The data used to create many MissionUsers. + */ + data: MissionUserCreateManyInput | MissionUserCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserIncludeCreateManyAndReturn | null + } + + /** + * MissionUser update + */ + export type MissionUserUpdateArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + /** + * The data needed to update a MissionUser. + */ + data: XOR + /** + * Choose, which MissionUser to update. + */ + where: MissionUserWhereUniqueInput + } + + /** + * MissionUser updateMany + */ + export type MissionUserUpdateManyArgs = { + /** + * The data used to update MissionUsers. + */ + data: XOR + /** + * Filter which MissionUsers to update + */ + where?: MissionUserWhereInput + /** + * Limit how many MissionUsers to update. + */ + limit?: number + } + + /** + * MissionUser updateManyAndReturn + */ + export type MissionUserUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * The data used to update MissionUsers. + */ + data: XOR + /** + * Filter which MissionUsers to update + */ + where?: MissionUserWhereInput + /** + * Limit how many MissionUsers to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserIncludeUpdateManyAndReturn | null + } + + /** + * MissionUser upsert + */ + export type MissionUserUpsertArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + /** + * The filter to search for the MissionUser to update in case it exists. + */ + where: MissionUserWhereUniqueInput + /** + * In case the MissionUser found by the `where` argument doesn't exist, create a new MissionUser with this data. + */ + create: XOR + /** + * In case the MissionUser was found with the provided `where` argument, update it with this data. + */ + update: XOR + } + + /** + * MissionUser delete + */ + export type MissionUserDeleteArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + /** + * Filter which MissionUser to delete. + */ + where: MissionUserWhereUniqueInput + } + + /** + * MissionUser deleteMany + */ + export type MissionUserDeleteManyArgs = { + /** + * Filter which MissionUsers to delete + */ + where?: MissionUserWhereInput + /** + * Limit how many MissionUsers to delete. + */ + limit?: number + } + + /** + * MissionUser without action + */ + export type MissionUserDefaultArgs = { + /** + * Select specific fields to fetch from the MissionUser + */ + select?: MissionUserSelect | null + /** + * Omit specific fields from the MissionUser + */ + omit?: MissionUserOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: MissionUserInclude | null + } + + /** * Enums */ @@ -7063,6 +12212,10 @@ export namespace Prisma { host: 'host', port: 'port', secure: 'secure', + use_oauth: 'use_oauth', + refresh_token: 'refresh_token', + access_token: 'access_token', + token_expiry: 'token_expiry', smtp_host: 'smtp_host', smtp_port: 'smtp_port', smtp_secure: 'smtp_secure', @@ -7087,6 +12240,67 @@ export namespace Prisma { export type WebDAVCredentialsScalarFieldEnum = (typeof WebDAVCredentialsScalarFieldEnum)[keyof typeof WebDAVCredentialsScalarFieldEnum] + export const AnnouncementScalarFieldEnum: { + id: 'id', + title: 'title', + content: 'content', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + authorId: 'authorId', + targetRoles: 'targetRoles' + }; + + export type AnnouncementScalarFieldEnum = (typeof AnnouncementScalarFieldEnum)[keyof typeof AnnouncementScalarFieldEnum] + + + export const MissionScalarFieldEnum: { + id: 'id', + name: 'name', + logo: 'logo', + oddScope: 'oddScope', + niveau: 'niveau', + intention: 'intention', + missionType: 'missionType', + donneurDOrdre: 'donneurDOrdre', + projection: 'projection', + services: 'services', + participation: 'participation', + profils: 'profils', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + creatorId: 'creatorId' + }; + + export type MissionScalarFieldEnum = (typeof MissionScalarFieldEnum)[keyof typeof MissionScalarFieldEnum] + + + export const AttachmentScalarFieldEnum: { + id: 'id', + filename: 'filename', + filePath: 'filePath', + fileType: 'fileType', + fileSize: 'fileSize', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + uploaderId: 'uploaderId' + }; + + export type AttachmentScalarFieldEnum = (typeof AttachmentScalarFieldEnum)[keyof typeof AttachmentScalarFieldEnum] + + + export const MissionUserScalarFieldEnum: { + id: 'id', + role: 'role', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + userId: 'userId' + }; + + export type MissionUserScalarFieldEnum = (typeof MissionUserScalarFieldEnum)[keyof typeof MissionUserScalarFieldEnum] + + export const SortOrder: { asc: 'asc', desc: 'desc' @@ -7195,6 +12409,10 @@ export namespace Prisma { events?: EventListRelationFilter mailCredentials?: MailCredentialsListRelationFilter webdavCredentials?: XOR | null + announcements?: AnnouncementListRelationFilter + missions?: MissionListRelationFilter + missionUsers?: MissionUserListRelationFilter + uploadedAttachments?: AttachmentListRelationFilter } export type UserOrderByWithRelationInput = { @@ -7207,6 +12425,10 @@ export namespace Prisma { events?: EventOrderByRelationAggregateInput mailCredentials?: MailCredentialsOrderByRelationAggregateInput webdavCredentials?: WebDAVCredentialsOrderByWithRelationInput + announcements?: AnnouncementOrderByRelationAggregateInput + missions?: MissionOrderByRelationAggregateInput + missionUsers?: MissionUserOrderByRelationAggregateInput + uploadedAttachments?: AttachmentOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ @@ -7222,6 +12444,10 @@ export namespace Prisma { events?: EventListRelationFilter mailCredentials?: MailCredentialsListRelationFilter webdavCredentials?: XOR | null + announcements?: AnnouncementListRelationFilter + missions?: MissionListRelationFilter + missionUsers?: MissionUserListRelationFilter + uploadedAttachments?: AttachmentListRelationFilter }, "id" | "email"> export type UserOrderByWithAggregationInput = { @@ -7409,10 +12635,14 @@ export namespace Prisma { id?: StringFilter<"MailCredentials"> | string userId?: StringFilter<"MailCredentials"> | string email?: StringFilter<"MailCredentials"> | string - password?: StringFilter<"MailCredentials"> | string + password?: StringNullableFilter<"MailCredentials"> | string | null host?: StringFilter<"MailCredentials"> | string port?: IntFilter<"MailCredentials"> | number secure?: BoolFilter<"MailCredentials"> | boolean + use_oauth?: BoolFilter<"MailCredentials"> | boolean + refresh_token?: StringNullableFilter<"MailCredentials"> | string | null + access_token?: StringNullableFilter<"MailCredentials"> | string | null + token_expiry?: DateTimeNullableFilter<"MailCredentials"> | Date | string | null smtp_host?: StringNullableFilter<"MailCredentials"> | string | null smtp_port?: IntNullableFilter<"MailCredentials"> | number | null smtp_secure?: BoolNullableFilter<"MailCredentials"> | boolean | null @@ -7427,10 +12657,14 @@ export namespace Prisma { id?: SortOrder userId?: SortOrder email?: SortOrder - password?: SortOrder + password?: SortOrderInput | SortOrder host?: SortOrder port?: SortOrder secure?: SortOrder + use_oauth?: SortOrder + refresh_token?: SortOrderInput | SortOrder + access_token?: SortOrderInput | SortOrder + token_expiry?: SortOrderInput | SortOrder smtp_host?: SortOrderInput | SortOrder smtp_port?: SortOrderInput | SortOrder smtp_secure?: SortOrderInput | SortOrder @@ -7443,15 +12677,20 @@ export namespace Prisma { export type MailCredentialsWhereUniqueInput = Prisma.AtLeast<{ id?: string + userId_email?: MailCredentialsUserIdEmailCompoundUniqueInput AND?: MailCredentialsWhereInput | MailCredentialsWhereInput[] OR?: MailCredentialsWhereInput[] NOT?: MailCredentialsWhereInput | MailCredentialsWhereInput[] userId?: StringFilter<"MailCredentials"> | string email?: StringFilter<"MailCredentials"> | string - password?: StringFilter<"MailCredentials"> | string + password?: StringNullableFilter<"MailCredentials"> | string | null host?: StringFilter<"MailCredentials"> | string port?: IntFilter<"MailCredentials"> | number secure?: BoolFilter<"MailCredentials"> | boolean + use_oauth?: BoolFilter<"MailCredentials"> | boolean + refresh_token?: StringNullableFilter<"MailCredentials"> | string | null + access_token?: StringNullableFilter<"MailCredentials"> | string | null + token_expiry?: DateTimeNullableFilter<"MailCredentials"> | Date | string | null smtp_host?: StringNullableFilter<"MailCredentials"> | string | null smtp_port?: IntNullableFilter<"MailCredentials"> | number | null smtp_secure?: BoolNullableFilter<"MailCredentials"> | boolean | null @@ -7460,16 +12699,20 @@ export namespace Prisma { createdAt?: DateTimeFilter<"MailCredentials"> | Date | string updatedAt?: DateTimeFilter<"MailCredentials"> | Date | string user?: XOR - }, "id"> + }, "id" | "userId_email"> export type MailCredentialsOrderByWithAggregationInput = { id?: SortOrder userId?: SortOrder email?: SortOrder - password?: SortOrder + password?: SortOrderInput | SortOrder host?: SortOrder port?: SortOrder secure?: SortOrder + use_oauth?: SortOrder + refresh_token?: SortOrderInput | SortOrder + access_token?: SortOrderInput | SortOrder + token_expiry?: SortOrderInput | SortOrder smtp_host?: SortOrderInput | SortOrder smtp_port?: SortOrderInput | SortOrder smtp_secure?: SortOrderInput | SortOrder @@ -7491,10 +12734,14 @@ export namespace Prisma { id?: StringWithAggregatesFilter<"MailCredentials"> | string userId?: StringWithAggregatesFilter<"MailCredentials"> | string email?: StringWithAggregatesFilter<"MailCredentials"> | string - password?: StringWithAggregatesFilter<"MailCredentials"> | string + password?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null host?: StringWithAggregatesFilter<"MailCredentials"> | string port?: IntWithAggregatesFilter<"MailCredentials"> | number secure?: BoolWithAggregatesFilter<"MailCredentials"> | boolean + use_oauth?: BoolWithAggregatesFilter<"MailCredentials"> | boolean + refresh_token?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null + access_token?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null + token_expiry?: DateTimeNullableWithAggregatesFilter<"MailCredentials"> | Date | string | null smtp_host?: StringNullableWithAggregatesFilter<"MailCredentials"> | string | null smtp_port?: IntNullableWithAggregatesFilter<"MailCredentials"> | number | null smtp_secure?: BoolNullableWithAggregatesFilter<"MailCredentials"> | boolean | null @@ -7564,6 +12811,326 @@ export namespace Prisma { updatedAt?: DateTimeWithAggregatesFilter<"WebDAVCredentials"> | Date | string } + export type AnnouncementWhereInput = { + AND?: AnnouncementWhereInput | AnnouncementWhereInput[] + OR?: AnnouncementWhereInput[] + NOT?: AnnouncementWhereInput | AnnouncementWhereInput[] + id?: StringFilter<"Announcement"> | string + title?: StringFilter<"Announcement"> | string + content?: StringFilter<"Announcement"> | string + createdAt?: DateTimeFilter<"Announcement"> | Date | string + updatedAt?: DateTimeFilter<"Announcement"> | Date | string + authorId?: StringFilter<"Announcement"> | string + targetRoles?: StringNullableListFilter<"Announcement"> + author?: XOR + } + + export type AnnouncementOrderByWithRelationInput = { + id?: SortOrder + title?: SortOrder + content?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + authorId?: SortOrder + targetRoles?: SortOrder + author?: UserOrderByWithRelationInput + } + + export type AnnouncementWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: AnnouncementWhereInput | AnnouncementWhereInput[] + OR?: AnnouncementWhereInput[] + NOT?: AnnouncementWhereInput | AnnouncementWhereInput[] + title?: StringFilter<"Announcement"> | string + content?: StringFilter<"Announcement"> | string + createdAt?: DateTimeFilter<"Announcement"> | Date | string + updatedAt?: DateTimeFilter<"Announcement"> | Date | string + authorId?: StringFilter<"Announcement"> | string + targetRoles?: StringNullableListFilter<"Announcement"> + author?: XOR + }, "id"> + + export type AnnouncementOrderByWithAggregationInput = { + id?: SortOrder + title?: SortOrder + content?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + authorId?: SortOrder + targetRoles?: SortOrder + _count?: AnnouncementCountOrderByAggregateInput + _max?: AnnouncementMaxOrderByAggregateInput + _min?: AnnouncementMinOrderByAggregateInput + } + + export type AnnouncementScalarWhereWithAggregatesInput = { + AND?: AnnouncementScalarWhereWithAggregatesInput | AnnouncementScalarWhereWithAggregatesInput[] + OR?: AnnouncementScalarWhereWithAggregatesInput[] + NOT?: AnnouncementScalarWhereWithAggregatesInput | AnnouncementScalarWhereWithAggregatesInput[] + id?: StringWithAggregatesFilter<"Announcement"> | string + title?: StringWithAggregatesFilter<"Announcement"> | string + content?: StringWithAggregatesFilter<"Announcement"> | string + createdAt?: DateTimeWithAggregatesFilter<"Announcement"> | Date | string + updatedAt?: DateTimeWithAggregatesFilter<"Announcement"> | Date | string + authorId?: StringWithAggregatesFilter<"Announcement"> | string + targetRoles?: StringNullableListFilter<"Announcement"> + } + + export type MissionWhereInput = { + AND?: MissionWhereInput | MissionWhereInput[] + OR?: MissionWhereInput[] + NOT?: MissionWhereInput | MissionWhereInput[] + id?: StringFilter<"Mission"> | string + name?: StringFilter<"Mission"> | string + logo?: StringNullableFilter<"Mission"> | string | null + oddScope?: StringNullableListFilter<"Mission"> + niveau?: StringFilter<"Mission"> | string + intention?: StringFilter<"Mission"> | string + missionType?: StringFilter<"Mission"> | string + donneurDOrdre?: StringFilter<"Mission"> | string + projection?: StringFilter<"Mission"> | string + services?: StringNullableListFilter<"Mission"> + participation?: StringNullableFilter<"Mission"> | string | null + profils?: StringNullableListFilter<"Mission"> + createdAt?: DateTimeFilter<"Mission"> | Date | string + updatedAt?: DateTimeFilter<"Mission"> | Date | string + creatorId?: StringFilter<"Mission"> | string + creator?: XOR + attachments?: AttachmentListRelationFilter + missionUsers?: MissionUserListRelationFilter + } + + export type MissionOrderByWithRelationInput = { + id?: SortOrder + name?: SortOrder + logo?: SortOrderInput | SortOrder + oddScope?: SortOrder + niveau?: SortOrder + intention?: SortOrder + missionType?: SortOrder + donneurDOrdre?: SortOrder + projection?: SortOrder + services?: SortOrder + participation?: SortOrderInput | SortOrder + profils?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + creatorId?: SortOrder + creator?: UserOrderByWithRelationInput + attachments?: AttachmentOrderByRelationAggregateInput + missionUsers?: MissionUserOrderByRelationAggregateInput + } + + export type MissionWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: MissionWhereInput | MissionWhereInput[] + OR?: MissionWhereInput[] + NOT?: MissionWhereInput | MissionWhereInput[] + name?: StringFilter<"Mission"> | string + logo?: StringNullableFilter<"Mission"> | string | null + oddScope?: StringNullableListFilter<"Mission"> + niveau?: StringFilter<"Mission"> | string + intention?: StringFilter<"Mission"> | string + missionType?: StringFilter<"Mission"> | string + donneurDOrdre?: StringFilter<"Mission"> | string + projection?: StringFilter<"Mission"> | string + services?: StringNullableListFilter<"Mission"> + participation?: StringNullableFilter<"Mission"> | string | null + profils?: StringNullableListFilter<"Mission"> + createdAt?: DateTimeFilter<"Mission"> | Date | string + updatedAt?: DateTimeFilter<"Mission"> | Date | string + creatorId?: StringFilter<"Mission"> | string + creator?: XOR + attachments?: AttachmentListRelationFilter + missionUsers?: MissionUserListRelationFilter + }, "id"> + + export type MissionOrderByWithAggregationInput = { + id?: SortOrder + name?: SortOrder + logo?: SortOrderInput | SortOrder + oddScope?: SortOrder + niveau?: SortOrder + intention?: SortOrder + missionType?: SortOrder + donneurDOrdre?: SortOrder + projection?: SortOrder + services?: SortOrder + participation?: SortOrderInput | SortOrder + profils?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + creatorId?: SortOrder + _count?: MissionCountOrderByAggregateInput + _max?: MissionMaxOrderByAggregateInput + _min?: MissionMinOrderByAggregateInput + } + + export type MissionScalarWhereWithAggregatesInput = { + AND?: MissionScalarWhereWithAggregatesInput | MissionScalarWhereWithAggregatesInput[] + OR?: MissionScalarWhereWithAggregatesInput[] + NOT?: MissionScalarWhereWithAggregatesInput | MissionScalarWhereWithAggregatesInput[] + id?: StringWithAggregatesFilter<"Mission"> | string + name?: StringWithAggregatesFilter<"Mission"> | string + logo?: StringNullableWithAggregatesFilter<"Mission"> | string | null + oddScope?: StringNullableListFilter<"Mission"> + niveau?: StringWithAggregatesFilter<"Mission"> | string + intention?: StringWithAggregatesFilter<"Mission"> | string + missionType?: StringWithAggregatesFilter<"Mission"> | string + donneurDOrdre?: StringWithAggregatesFilter<"Mission"> | string + projection?: StringWithAggregatesFilter<"Mission"> | string + services?: StringNullableListFilter<"Mission"> + participation?: StringNullableWithAggregatesFilter<"Mission"> | string | null + profils?: StringNullableListFilter<"Mission"> + createdAt?: DateTimeWithAggregatesFilter<"Mission"> | Date | string + updatedAt?: DateTimeWithAggregatesFilter<"Mission"> | Date | string + creatorId?: StringWithAggregatesFilter<"Mission"> | string + } + + export type AttachmentWhereInput = { + AND?: AttachmentWhereInput | AttachmentWhereInput[] + OR?: AttachmentWhereInput[] + NOT?: AttachmentWhereInput | AttachmentWhereInput[] + id?: StringFilter<"Attachment"> | string + filename?: StringFilter<"Attachment"> | string + filePath?: StringFilter<"Attachment"> | string + fileType?: StringFilter<"Attachment"> | string + fileSize?: IntFilter<"Attachment"> | number + createdAt?: DateTimeFilter<"Attachment"> | Date | string + updatedAt?: DateTimeFilter<"Attachment"> | Date | string + missionId?: StringFilter<"Attachment"> | string + uploaderId?: StringFilter<"Attachment"> | string + mission?: XOR + uploader?: XOR + } + + export type AttachmentOrderByWithRelationInput = { + id?: SortOrder + filename?: SortOrder + filePath?: SortOrder + fileType?: SortOrder + fileSize?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + uploaderId?: SortOrder + mission?: MissionOrderByWithRelationInput + uploader?: UserOrderByWithRelationInput + } + + export type AttachmentWhereUniqueInput = Prisma.AtLeast<{ + id?: string + AND?: AttachmentWhereInput | AttachmentWhereInput[] + OR?: AttachmentWhereInput[] + NOT?: AttachmentWhereInput | AttachmentWhereInput[] + filename?: StringFilter<"Attachment"> | string + filePath?: StringFilter<"Attachment"> | string + fileType?: StringFilter<"Attachment"> | string + fileSize?: IntFilter<"Attachment"> | number + createdAt?: DateTimeFilter<"Attachment"> | Date | string + updatedAt?: DateTimeFilter<"Attachment"> | Date | string + missionId?: StringFilter<"Attachment"> | string + uploaderId?: StringFilter<"Attachment"> | string + mission?: XOR + uploader?: XOR + }, "id"> + + export type AttachmentOrderByWithAggregationInput = { + id?: SortOrder + filename?: SortOrder + filePath?: SortOrder + fileType?: SortOrder + fileSize?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + uploaderId?: SortOrder + _count?: AttachmentCountOrderByAggregateInput + _avg?: AttachmentAvgOrderByAggregateInput + _max?: AttachmentMaxOrderByAggregateInput + _min?: AttachmentMinOrderByAggregateInput + _sum?: AttachmentSumOrderByAggregateInput + } + + export type AttachmentScalarWhereWithAggregatesInput = { + AND?: AttachmentScalarWhereWithAggregatesInput | AttachmentScalarWhereWithAggregatesInput[] + OR?: AttachmentScalarWhereWithAggregatesInput[] + NOT?: AttachmentScalarWhereWithAggregatesInput | AttachmentScalarWhereWithAggregatesInput[] + id?: StringWithAggregatesFilter<"Attachment"> | string + filename?: StringWithAggregatesFilter<"Attachment"> | string + filePath?: StringWithAggregatesFilter<"Attachment"> | string + fileType?: StringWithAggregatesFilter<"Attachment"> | string + fileSize?: IntWithAggregatesFilter<"Attachment"> | number + createdAt?: DateTimeWithAggregatesFilter<"Attachment"> | Date | string + updatedAt?: DateTimeWithAggregatesFilter<"Attachment"> | Date | string + missionId?: StringWithAggregatesFilter<"Attachment"> | string + uploaderId?: StringWithAggregatesFilter<"Attachment"> | string + } + + export type MissionUserWhereInput = { + AND?: MissionUserWhereInput | MissionUserWhereInput[] + OR?: MissionUserWhereInput[] + NOT?: MissionUserWhereInput | MissionUserWhereInput[] + id?: StringFilter<"MissionUser"> | string + role?: StringFilter<"MissionUser"> | string + createdAt?: DateTimeFilter<"MissionUser"> | Date | string + updatedAt?: DateTimeFilter<"MissionUser"> | Date | string + missionId?: StringFilter<"MissionUser"> | string + userId?: StringFilter<"MissionUser"> | string + mission?: XOR + user?: XOR + } + + export type MissionUserOrderByWithRelationInput = { + id?: SortOrder + role?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + userId?: SortOrder + mission?: MissionOrderByWithRelationInput + user?: UserOrderByWithRelationInput + } + + export type MissionUserWhereUniqueInput = Prisma.AtLeast<{ + id?: string + missionId_userId_role?: MissionUserMissionIdUserIdRoleCompoundUniqueInput + AND?: MissionUserWhereInput | MissionUserWhereInput[] + OR?: MissionUserWhereInput[] + NOT?: MissionUserWhereInput | MissionUserWhereInput[] + role?: StringFilter<"MissionUser"> | string + createdAt?: DateTimeFilter<"MissionUser"> | Date | string + updatedAt?: DateTimeFilter<"MissionUser"> | Date | string + missionId?: StringFilter<"MissionUser"> | string + userId?: StringFilter<"MissionUser"> | string + mission?: XOR + user?: XOR + }, "id" | "missionId_userId_role"> + + export type MissionUserOrderByWithAggregationInput = { + id?: SortOrder + role?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + userId?: SortOrder + _count?: MissionUserCountOrderByAggregateInput + _max?: MissionUserMaxOrderByAggregateInput + _min?: MissionUserMinOrderByAggregateInput + } + + export type MissionUserScalarWhereWithAggregatesInput = { + AND?: MissionUserScalarWhereWithAggregatesInput | MissionUserScalarWhereWithAggregatesInput[] + OR?: MissionUserScalarWhereWithAggregatesInput[] + NOT?: MissionUserScalarWhereWithAggregatesInput | MissionUserScalarWhereWithAggregatesInput[] + id?: StringWithAggregatesFilter<"MissionUser"> | string + role?: StringWithAggregatesFilter<"MissionUser"> | string + createdAt?: DateTimeWithAggregatesFilter<"MissionUser"> | Date | string + updatedAt?: DateTimeWithAggregatesFilter<"MissionUser"> | Date | string + missionId?: StringWithAggregatesFilter<"MissionUser"> | string + userId?: StringWithAggregatesFilter<"MissionUser"> | string + } + export type UserCreateInput = { id?: string email: string @@ -7574,6 +13141,10 @@ export namespace Prisma { events?: EventCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput + announcements?: AnnouncementCreateNestedManyWithoutAuthorInput + missions?: MissionCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput } export type UserUncheckedCreateInput = { @@ -7586,6 +13157,10 @@ export namespace Prisma { events?: EventUncheckedCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput + announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput + missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput } export type UserUpdateInput = { @@ -7598,6 +13173,10 @@ export namespace Prisma { events?: EventUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput + missions?: MissionUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput } export type UserUncheckedUpdateInput = { @@ -7610,6 +13189,10 @@ export namespace Prisma { events?: EventUncheckedUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput + missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput } export type UserCreateManyInput = { @@ -7808,10 +13391,14 @@ export namespace Prisma { export type MailCredentialsCreateInput = { id?: string email: string - password: string + password?: string | null host: string port: number secure?: boolean + use_oauth?: boolean + refresh_token?: string | null + access_token?: string | null + token_expiry?: Date | string | null smtp_host?: string | null smtp_port?: number | null smtp_secure?: boolean | null @@ -7826,10 +13413,14 @@ export namespace Prisma { id?: string userId: string email: string - password: string + password?: string | null host: string port: number secure?: boolean + use_oauth?: boolean + refresh_token?: string | null + access_token?: string | null + token_expiry?: Date | string | null smtp_host?: string | null smtp_port?: number | null smtp_secure?: boolean | null @@ -7842,10 +13433,14 @@ export namespace Prisma { export type MailCredentialsUpdateInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string + password?: NullableStringFieldUpdateOperationsInput | string | null host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number secure?: BoolFieldUpdateOperationsInput | boolean + use_oauth?: BoolFieldUpdateOperationsInput | boolean + refresh_token?: NullableStringFieldUpdateOperationsInput | string | null + access_token?: NullableStringFieldUpdateOperationsInput | string | null + token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null smtp_host?: NullableStringFieldUpdateOperationsInput | string | null smtp_port?: NullableIntFieldUpdateOperationsInput | number | null smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null @@ -7860,10 +13455,14 @@ export namespace Prisma { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string + password?: NullableStringFieldUpdateOperationsInput | string | null host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number secure?: BoolFieldUpdateOperationsInput | boolean + use_oauth?: BoolFieldUpdateOperationsInput | boolean + refresh_token?: NullableStringFieldUpdateOperationsInput | string | null + access_token?: NullableStringFieldUpdateOperationsInput | string | null + token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null smtp_host?: NullableStringFieldUpdateOperationsInput | string | null smtp_port?: NullableIntFieldUpdateOperationsInput | number | null smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null @@ -7877,10 +13476,14 @@ export namespace Prisma { id?: string userId: string email: string - password: string + password?: string | null host: string port: number secure?: boolean + use_oauth?: boolean + refresh_token?: string | null + access_token?: string | null + token_expiry?: Date | string | null smtp_host?: string | null smtp_port?: number | null smtp_secure?: boolean | null @@ -7893,10 +13496,14 @@ export namespace Prisma { export type MailCredentialsUpdateManyMutationInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string + password?: NullableStringFieldUpdateOperationsInput | string | null host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number secure?: BoolFieldUpdateOperationsInput | boolean + use_oauth?: BoolFieldUpdateOperationsInput | boolean + refresh_token?: NullableStringFieldUpdateOperationsInput | string | null + access_token?: NullableStringFieldUpdateOperationsInput | string | null + token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null smtp_host?: NullableStringFieldUpdateOperationsInput | string | null smtp_port?: NullableIntFieldUpdateOperationsInput | number | null smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null @@ -7910,10 +13517,14 @@ export namespace Prisma { id?: StringFieldUpdateOperationsInput | string userId?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string + password?: NullableStringFieldUpdateOperationsInput | string | null host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number secure?: BoolFieldUpdateOperationsInput | boolean + use_oauth?: BoolFieldUpdateOperationsInput | boolean + refresh_token?: NullableStringFieldUpdateOperationsInput | string | null + access_token?: NullableStringFieldUpdateOperationsInput | string | null + token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null smtp_host?: NullableStringFieldUpdateOperationsInput | string | null smtp_port?: NullableIntFieldUpdateOperationsInput | number | null smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null @@ -7985,6 +13596,351 @@ export namespace Prisma { updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } + export type AnnouncementCreateInput = { + id?: string + title: string + content: string + createdAt?: Date | string + updatedAt?: Date | string + targetRoles?: AnnouncementCreatetargetRolesInput | string[] + author: UserCreateNestedOneWithoutAnnouncementsInput + } + + export type AnnouncementUncheckedCreateInput = { + id?: string + title: string + content: string + createdAt?: Date | string + updatedAt?: Date | string + authorId: string + targetRoles?: AnnouncementCreatetargetRolesInput | string[] + } + + export type AnnouncementUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + title?: StringFieldUpdateOperationsInput | string + content?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + targetRoles?: AnnouncementUpdatetargetRolesInput | string[] + author?: UserUpdateOneRequiredWithoutAnnouncementsNestedInput + } + + export type AnnouncementUncheckedUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + title?: StringFieldUpdateOperationsInput | string + content?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + authorId?: StringFieldUpdateOperationsInput | string + targetRoles?: AnnouncementUpdatetargetRolesInput | string[] + } + + export type AnnouncementCreateManyInput = { + id?: string + title: string + content: string + createdAt?: Date | string + updatedAt?: Date | string + authorId: string + targetRoles?: AnnouncementCreatetargetRolesInput | string[] + } + + export type AnnouncementUpdateManyMutationInput = { + id?: StringFieldUpdateOperationsInput | string + title?: StringFieldUpdateOperationsInput | string + content?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + targetRoles?: AnnouncementUpdatetargetRolesInput | string[] + } + + export type AnnouncementUncheckedUpdateManyInput = { + id?: StringFieldUpdateOperationsInput | string + title?: StringFieldUpdateOperationsInput | string + content?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + authorId?: StringFieldUpdateOperationsInput | string + targetRoles?: AnnouncementUpdatetargetRolesInput | string[] + } + + export type MissionCreateInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + creator: UserCreateNestedOneWithoutMissionsInput + attachments?: AttachmentCreateNestedManyWithoutMissionInput + missionUsers?: MissionUserCreateNestedManyWithoutMissionInput + } + + export type MissionUncheckedCreateInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + creatorId: string + attachments?: AttachmentUncheckedCreateNestedManyWithoutMissionInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutMissionInput + } + + export type MissionUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + creator?: UserUpdateOneRequiredWithoutMissionsNestedInput + attachments?: AttachmentUpdateManyWithoutMissionNestedInput + missionUsers?: MissionUserUpdateManyWithoutMissionNestedInput + } + + export type MissionUncheckedUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: StringFieldUpdateOperationsInput | string + attachments?: AttachmentUncheckedUpdateManyWithoutMissionNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutMissionNestedInput + } + + export type MissionCreateManyInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + creatorId: string + } + + export type MissionUpdateManyMutationInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type MissionUncheckedUpdateManyInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: StringFieldUpdateOperationsInput | string + } + + export type AttachmentCreateInput = { + id?: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt?: Date | string + updatedAt?: Date | string + mission: MissionCreateNestedOneWithoutAttachmentsInput + uploader: UserCreateNestedOneWithoutUploadedAttachmentsInput + } + + export type AttachmentUncheckedCreateInput = { + id?: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt?: Date | string + updatedAt?: Date | string + missionId: string + uploaderId: string + } + + export type AttachmentUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + mission?: MissionUpdateOneRequiredWithoutAttachmentsNestedInput + uploader?: UserUpdateOneRequiredWithoutUploadedAttachmentsNestedInput + } + + export type AttachmentUncheckedUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + missionId?: StringFieldUpdateOperationsInput | string + uploaderId?: StringFieldUpdateOperationsInput | string + } + + export type AttachmentCreateManyInput = { + id?: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt?: Date | string + updatedAt?: Date | string + missionId: string + uploaderId: string + } + + export type AttachmentUpdateManyMutationInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type AttachmentUncheckedUpdateManyInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + missionId?: StringFieldUpdateOperationsInput | string + uploaderId?: StringFieldUpdateOperationsInput | string + } + + export type MissionUserCreateInput = { + id?: string + role: string + createdAt?: Date | string + updatedAt?: Date | string + mission: MissionCreateNestedOneWithoutMissionUsersInput + user: UserCreateNestedOneWithoutMissionUsersInput + } + + export type MissionUserUncheckedCreateInput = { + id?: string + role: string + createdAt?: Date | string + updatedAt?: Date | string + missionId: string + userId: string + } + + export type MissionUserUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + mission?: MissionUpdateOneRequiredWithoutMissionUsersNestedInput + user?: UserUpdateOneRequiredWithoutMissionUsersNestedInput + } + + export type MissionUserUncheckedUpdateInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + missionId?: StringFieldUpdateOperationsInput | string + userId?: StringFieldUpdateOperationsInput | string + } + + export type MissionUserCreateManyInput = { + id?: string + role: string + createdAt?: Date | string + updatedAt?: Date | string + missionId: string + userId: string + } + + export type MissionUserUpdateManyMutationInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type MissionUserUncheckedUpdateManyInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + missionId?: StringFieldUpdateOperationsInput | string + userId?: StringFieldUpdateOperationsInput | string + } + export type StringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> @@ -8034,6 +13990,30 @@ export namespace Prisma { isNot?: WebDAVCredentialsWhereInput | null } + export type AnnouncementListRelationFilter = { + every?: AnnouncementWhereInput + some?: AnnouncementWhereInput + none?: AnnouncementWhereInput + } + + export type MissionListRelationFilter = { + every?: MissionWhereInput + some?: MissionWhereInput + none?: MissionWhereInput + } + + export type MissionUserListRelationFilter = { + every?: MissionUserWhereInput + some?: MissionUserWhereInput + none?: MissionUserWhereInput + } + + export type AttachmentListRelationFilter = { + every?: AttachmentWhereInput + some?: AttachmentWhereInput + none?: AttachmentWhereInput + } + export type CalendarOrderByRelationAggregateInput = { _count?: SortOrder } @@ -8046,6 +14026,22 @@ export namespace Prisma { _count?: SortOrder } + export type AnnouncementOrderByRelationAggregateInput = { + _count?: SortOrder + } + + export type MissionOrderByRelationAggregateInput = { + _count?: SortOrder + } + + export type MissionUserOrderByRelationAggregateInput = { + _count?: SortOrder + } + + export type AttachmentOrderByRelationAggregateInput = { + _count?: SortOrder + } + export type UserCountOrderByAggregateInput = { id?: SortOrder email?: SortOrder @@ -8246,6 +14242,17 @@ export namespace Prisma { not?: NestedIntFilter<$PrismaModel> | number } + export type DateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> + not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null + } + export type IntNullableFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null @@ -8262,6 +14269,11 @@ export namespace Prisma { not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null } + export type MailCredentialsUserIdEmailCompoundUniqueInput = { + userId: string + email: string + } + export type MailCredentialsCountOrderByAggregateInput = { id?: SortOrder userId?: SortOrder @@ -8270,6 +14282,10 @@ export namespace Prisma { host?: SortOrder port?: SortOrder secure?: SortOrder + use_oauth?: SortOrder + refresh_token?: SortOrder + access_token?: SortOrder + token_expiry?: SortOrder smtp_host?: SortOrder smtp_port?: SortOrder smtp_secure?: SortOrder @@ -8292,6 +14308,10 @@ export namespace Prisma { host?: SortOrder port?: SortOrder secure?: SortOrder + use_oauth?: SortOrder + refresh_token?: SortOrder + access_token?: SortOrder + token_expiry?: SortOrder smtp_host?: SortOrder smtp_port?: SortOrder smtp_secure?: SortOrder @@ -8309,6 +14329,10 @@ export namespace Prisma { host?: SortOrder port?: SortOrder secure?: SortOrder + use_oauth?: SortOrder + refresh_token?: SortOrder + access_token?: SortOrder + token_expiry?: SortOrder smtp_host?: SortOrder smtp_port?: SortOrder smtp_secure?: SortOrder @@ -8339,6 +14363,20 @@ export namespace Prisma { _max?: NestedIntFilter<$PrismaModel> } + export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> + not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: NestedIntNullableFilter<$PrismaModel> + _min?: NestedDateTimeNullableFilter<$PrismaModel> + _max?: NestedDateTimeNullableFilter<$PrismaModel> + } + export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null @@ -8390,6 +14428,172 @@ export namespace Prisma { updatedAt?: SortOrder } + export type StringNullableListFilter<$PrismaModel = never> = { + equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null + has?: string | StringFieldRefInput<$PrismaModel> | null + hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel> + hasSome?: string[] | ListStringFieldRefInput<$PrismaModel> + isEmpty?: boolean + } + + export type AnnouncementCountOrderByAggregateInput = { + id?: SortOrder + title?: SortOrder + content?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + authorId?: SortOrder + targetRoles?: SortOrder + } + + export type AnnouncementMaxOrderByAggregateInput = { + id?: SortOrder + title?: SortOrder + content?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + authorId?: SortOrder + } + + export type AnnouncementMinOrderByAggregateInput = { + id?: SortOrder + title?: SortOrder + content?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + authorId?: SortOrder + } + + export type MissionCountOrderByAggregateInput = { + id?: SortOrder + name?: SortOrder + logo?: SortOrder + oddScope?: SortOrder + niveau?: SortOrder + intention?: SortOrder + missionType?: SortOrder + donneurDOrdre?: SortOrder + projection?: SortOrder + services?: SortOrder + participation?: SortOrder + profils?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + creatorId?: SortOrder + } + + export type MissionMaxOrderByAggregateInput = { + id?: SortOrder + name?: SortOrder + logo?: SortOrder + niveau?: SortOrder + intention?: SortOrder + missionType?: SortOrder + donneurDOrdre?: SortOrder + projection?: SortOrder + participation?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + creatorId?: SortOrder + } + + export type MissionMinOrderByAggregateInput = { + id?: SortOrder + name?: SortOrder + logo?: SortOrder + niveau?: SortOrder + intention?: SortOrder + missionType?: SortOrder + donneurDOrdre?: SortOrder + projection?: SortOrder + participation?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + creatorId?: SortOrder + } + + export type MissionScalarRelationFilter = { + is?: MissionWhereInput + isNot?: MissionWhereInput + } + + export type AttachmentCountOrderByAggregateInput = { + id?: SortOrder + filename?: SortOrder + filePath?: SortOrder + fileType?: SortOrder + fileSize?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + uploaderId?: SortOrder + } + + export type AttachmentAvgOrderByAggregateInput = { + fileSize?: SortOrder + } + + export type AttachmentMaxOrderByAggregateInput = { + id?: SortOrder + filename?: SortOrder + filePath?: SortOrder + fileType?: SortOrder + fileSize?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + uploaderId?: SortOrder + } + + export type AttachmentMinOrderByAggregateInput = { + id?: SortOrder + filename?: SortOrder + filePath?: SortOrder + fileType?: SortOrder + fileSize?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + uploaderId?: SortOrder + } + + export type AttachmentSumOrderByAggregateInput = { + fileSize?: SortOrder + } + + export type MissionUserMissionIdUserIdRoleCompoundUniqueInput = { + missionId: string + userId: string + role: string + } + + export type MissionUserCountOrderByAggregateInput = { + id?: SortOrder + role?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + userId?: SortOrder + } + + export type MissionUserMaxOrderByAggregateInput = { + id?: SortOrder + role?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + userId?: SortOrder + } + + export type MissionUserMinOrderByAggregateInput = { + id?: SortOrder + role?: SortOrder + createdAt?: SortOrder + updatedAt?: SortOrder + missionId?: SortOrder + userId?: SortOrder + } + export type CalendarCreateNestedManyWithoutUserInput = { create?: XOR | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[] connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[] @@ -8417,6 +14621,34 @@ export namespace Prisma { connect?: WebDAVCredentialsWhereUniqueInput } + export type AnnouncementCreateNestedManyWithoutAuthorInput = { + create?: XOR | AnnouncementCreateWithoutAuthorInput[] | AnnouncementUncheckedCreateWithoutAuthorInput[] + connectOrCreate?: AnnouncementCreateOrConnectWithoutAuthorInput | AnnouncementCreateOrConnectWithoutAuthorInput[] + createMany?: AnnouncementCreateManyAuthorInputEnvelope + connect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + } + + export type MissionCreateNestedManyWithoutCreatorInput = { + create?: XOR | MissionCreateWithoutCreatorInput[] | MissionUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: MissionCreateOrConnectWithoutCreatorInput | MissionCreateOrConnectWithoutCreatorInput[] + createMany?: MissionCreateManyCreatorInputEnvelope + connect?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + } + + export type MissionUserCreateNestedManyWithoutUserInput = { + create?: XOR | MissionUserCreateWithoutUserInput[] | MissionUserUncheckedCreateWithoutUserInput[] + connectOrCreate?: MissionUserCreateOrConnectWithoutUserInput | MissionUserCreateOrConnectWithoutUserInput[] + createMany?: MissionUserCreateManyUserInputEnvelope + connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + } + + export type AttachmentCreateNestedManyWithoutUploaderInput = { + create?: XOR | AttachmentCreateWithoutUploaderInput[] | AttachmentUncheckedCreateWithoutUploaderInput[] + connectOrCreate?: AttachmentCreateOrConnectWithoutUploaderInput | AttachmentCreateOrConnectWithoutUploaderInput[] + createMany?: AttachmentCreateManyUploaderInputEnvelope + connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + } + export type CalendarUncheckedCreateNestedManyWithoutUserInput = { create?: XOR | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[] connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[] @@ -8444,6 +14676,34 @@ export namespace Prisma { connect?: WebDAVCredentialsWhereUniqueInput } + export type AnnouncementUncheckedCreateNestedManyWithoutAuthorInput = { + create?: XOR | AnnouncementCreateWithoutAuthorInput[] | AnnouncementUncheckedCreateWithoutAuthorInput[] + connectOrCreate?: AnnouncementCreateOrConnectWithoutAuthorInput | AnnouncementCreateOrConnectWithoutAuthorInput[] + createMany?: AnnouncementCreateManyAuthorInputEnvelope + connect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + } + + export type MissionUncheckedCreateNestedManyWithoutCreatorInput = { + create?: XOR | MissionCreateWithoutCreatorInput[] | MissionUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: MissionCreateOrConnectWithoutCreatorInput | MissionCreateOrConnectWithoutCreatorInput[] + createMany?: MissionCreateManyCreatorInputEnvelope + connect?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + } + + export type MissionUserUncheckedCreateNestedManyWithoutUserInput = { + create?: XOR | MissionUserCreateWithoutUserInput[] | MissionUserUncheckedCreateWithoutUserInput[] + connectOrCreate?: MissionUserCreateOrConnectWithoutUserInput | MissionUserCreateOrConnectWithoutUserInput[] + createMany?: MissionUserCreateManyUserInputEnvelope + connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + } + + export type AttachmentUncheckedCreateNestedManyWithoutUploaderInput = { + create?: XOR | AttachmentCreateWithoutUploaderInput[] | AttachmentUncheckedCreateWithoutUploaderInput[] + connectOrCreate?: AttachmentCreateOrConnectWithoutUploaderInput | AttachmentCreateOrConnectWithoutUploaderInput[] + createMany?: AttachmentCreateManyUploaderInputEnvelope + connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + } + export type StringFieldUpdateOperationsInput = { set?: string } @@ -8504,6 +14764,62 @@ export namespace Prisma { update?: XOR, WebDAVCredentialsUncheckedUpdateWithoutUserInput> } + export type AnnouncementUpdateManyWithoutAuthorNestedInput = { + create?: XOR | AnnouncementCreateWithoutAuthorInput[] | AnnouncementUncheckedCreateWithoutAuthorInput[] + connectOrCreate?: AnnouncementCreateOrConnectWithoutAuthorInput | AnnouncementCreateOrConnectWithoutAuthorInput[] + upsert?: AnnouncementUpsertWithWhereUniqueWithoutAuthorInput | AnnouncementUpsertWithWhereUniqueWithoutAuthorInput[] + createMany?: AnnouncementCreateManyAuthorInputEnvelope + set?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + disconnect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + delete?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + connect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + update?: AnnouncementUpdateWithWhereUniqueWithoutAuthorInput | AnnouncementUpdateWithWhereUniqueWithoutAuthorInput[] + updateMany?: AnnouncementUpdateManyWithWhereWithoutAuthorInput | AnnouncementUpdateManyWithWhereWithoutAuthorInput[] + deleteMany?: AnnouncementScalarWhereInput | AnnouncementScalarWhereInput[] + } + + export type MissionUpdateManyWithoutCreatorNestedInput = { + create?: XOR | MissionCreateWithoutCreatorInput[] | MissionUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: MissionCreateOrConnectWithoutCreatorInput | MissionCreateOrConnectWithoutCreatorInput[] + upsert?: MissionUpsertWithWhereUniqueWithoutCreatorInput | MissionUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: MissionCreateManyCreatorInputEnvelope + set?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + disconnect?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + delete?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + connect?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + update?: MissionUpdateWithWhereUniqueWithoutCreatorInput | MissionUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: MissionUpdateManyWithWhereWithoutCreatorInput | MissionUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: MissionScalarWhereInput | MissionScalarWhereInput[] + } + + export type MissionUserUpdateManyWithoutUserNestedInput = { + create?: XOR | MissionUserCreateWithoutUserInput[] | MissionUserUncheckedCreateWithoutUserInput[] + connectOrCreate?: MissionUserCreateOrConnectWithoutUserInput | MissionUserCreateOrConnectWithoutUserInput[] + upsert?: MissionUserUpsertWithWhereUniqueWithoutUserInput | MissionUserUpsertWithWhereUniqueWithoutUserInput[] + createMany?: MissionUserCreateManyUserInputEnvelope + set?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + disconnect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + delete?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + update?: MissionUserUpdateWithWhereUniqueWithoutUserInput | MissionUserUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: MissionUserUpdateManyWithWhereWithoutUserInput | MissionUserUpdateManyWithWhereWithoutUserInput[] + deleteMany?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[] + } + + export type AttachmentUpdateManyWithoutUploaderNestedInput = { + create?: XOR | AttachmentCreateWithoutUploaderInput[] | AttachmentUncheckedCreateWithoutUploaderInput[] + connectOrCreate?: AttachmentCreateOrConnectWithoutUploaderInput | AttachmentCreateOrConnectWithoutUploaderInput[] + upsert?: AttachmentUpsertWithWhereUniqueWithoutUploaderInput | AttachmentUpsertWithWhereUniqueWithoutUploaderInput[] + createMany?: AttachmentCreateManyUploaderInputEnvelope + set?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + disconnect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + delete?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + update?: AttachmentUpdateWithWhereUniqueWithoutUploaderInput | AttachmentUpdateWithWhereUniqueWithoutUploaderInput[] + updateMany?: AttachmentUpdateManyWithWhereWithoutUploaderInput | AttachmentUpdateManyWithWhereWithoutUploaderInput[] + deleteMany?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[] + } + export type CalendarUncheckedUpdateManyWithoutUserNestedInput = { create?: XOR | CalendarCreateWithoutUserInput[] | CalendarUncheckedCreateWithoutUserInput[] connectOrCreate?: CalendarCreateOrConnectWithoutUserInput | CalendarCreateOrConnectWithoutUserInput[] @@ -8556,6 +14872,62 @@ export namespace Prisma { update?: XOR, WebDAVCredentialsUncheckedUpdateWithoutUserInput> } + export type AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput = { + create?: XOR | AnnouncementCreateWithoutAuthorInput[] | AnnouncementUncheckedCreateWithoutAuthorInput[] + connectOrCreate?: AnnouncementCreateOrConnectWithoutAuthorInput | AnnouncementCreateOrConnectWithoutAuthorInput[] + upsert?: AnnouncementUpsertWithWhereUniqueWithoutAuthorInput | AnnouncementUpsertWithWhereUniqueWithoutAuthorInput[] + createMany?: AnnouncementCreateManyAuthorInputEnvelope + set?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + disconnect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + delete?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + connect?: AnnouncementWhereUniqueInput | AnnouncementWhereUniqueInput[] + update?: AnnouncementUpdateWithWhereUniqueWithoutAuthorInput | AnnouncementUpdateWithWhereUniqueWithoutAuthorInput[] + updateMany?: AnnouncementUpdateManyWithWhereWithoutAuthorInput | AnnouncementUpdateManyWithWhereWithoutAuthorInput[] + deleteMany?: AnnouncementScalarWhereInput | AnnouncementScalarWhereInput[] + } + + export type MissionUncheckedUpdateManyWithoutCreatorNestedInput = { + create?: XOR | MissionCreateWithoutCreatorInput[] | MissionUncheckedCreateWithoutCreatorInput[] + connectOrCreate?: MissionCreateOrConnectWithoutCreatorInput | MissionCreateOrConnectWithoutCreatorInput[] + upsert?: MissionUpsertWithWhereUniqueWithoutCreatorInput | MissionUpsertWithWhereUniqueWithoutCreatorInput[] + createMany?: MissionCreateManyCreatorInputEnvelope + set?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + disconnect?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + delete?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + connect?: MissionWhereUniqueInput | MissionWhereUniqueInput[] + update?: MissionUpdateWithWhereUniqueWithoutCreatorInput | MissionUpdateWithWhereUniqueWithoutCreatorInput[] + updateMany?: MissionUpdateManyWithWhereWithoutCreatorInput | MissionUpdateManyWithWhereWithoutCreatorInput[] + deleteMany?: MissionScalarWhereInput | MissionScalarWhereInput[] + } + + export type MissionUserUncheckedUpdateManyWithoutUserNestedInput = { + create?: XOR | MissionUserCreateWithoutUserInput[] | MissionUserUncheckedCreateWithoutUserInput[] + connectOrCreate?: MissionUserCreateOrConnectWithoutUserInput | MissionUserCreateOrConnectWithoutUserInput[] + upsert?: MissionUserUpsertWithWhereUniqueWithoutUserInput | MissionUserUpsertWithWhereUniqueWithoutUserInput[] + createMany?: MissionUserCreateManyUserInputEnvelope + set?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + disconnect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + delete?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + update?: MissionUserUpdateWithWhereUniqueWithoutUserInput | MissionUserUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: MissionUserUpdateManyWithWhereWithoutUserInput | MissionUserUpdateManyWithWhereWithoutUserInput[] + deleteMany?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[] + } + + export type AttachmentUncheckedUpdateManyWithoutUploaderNestedInput = { + create?: XOR | AttachmentCreateWithoutUploaderInput[] | AttachmentUncheckedCreateWithoutUploaderInput[] + connectOrCreate?: AttachmentCreateOrConnectWithoutUploaderInput | AttachmentCreateOrConnectWithoutUploaderInput[] + upsert?: AttachmentUpsertWithWhereUniqueWithoutUploaderInput | AttachmentUpsertWithWhereUniqueWithoutUploaderInput[] + createMany?: AttachmentCreateManyUploaderInputEnvelope + set?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + disconnect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + delete?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + update?: AttachmentUpdateWithWhereUniqueWithoutUploaderInput | AttachmentUpdateWithWhereUniqueWithoutUploaderInput[] + updateMany?: AttachmentUpdateManyWithWhereWithoutUploaderInput | AttachmentUpdateManyWithWhereWithoutUploaderInput[] + deleteMany?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[] + } + export type EventCreateNestedManyWithoutCalendarInput = { create?: XOR | EventCreateWithoutCalendarInput[] | EventUncheckedCreateWithoutCalendarInput[] connectOrCreate?: EventCreateOrConnectWithoutCalendarInput | EventCreateOrConnectWithoutCalendarInput[] @@ -8662,6 +15034,10 @@ export namespace Prisma { divide?: number } + export type NullableDateTimeFieldUpdateOperationsInput = { + set?: Date | string | null + } + export type NullableIntFieldUpdateOperationsInput = { set?: number | null increment?: number @@ -8696,6 +15072,210 @@ export namespace Prisma { update?: XOR, UserUncheckedUpdateWithoutWebdavCredentialsInput> } + export type AnnouncementCreatetargetRolesInput = { + set: string[] + } + + export type UserCreateNestedOneWithoutAnnouncementsInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutAnnouncementsInput + connect?: UserWhereUniqueInput + } + + export type AnnouncementUpdatetargetRolesInput = { + set?: string[] + push?: string | string[] + } + + export type UserUpdateOneRequiredWithoutAnnouncementsNestedInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutAnnouncementsInput + upsert?: UserUpsertWithoutAnnouncementsInput + connect?: UserWhereUniqueInput + update?: XOR, UserUncheckedUpdateWithoutAnnouncementsInput> + } + + export type MissionCreateoddScopeInput = { + set: string[] + } + + export type MissionCreateservicesInput = { + set: string[] + } + + export type MissionCreateprofilsInput = { + set: string[] + } + + export type UserCreateNestedOneWithoutMissionsInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutMissionsInput + connect?: UserWhereUniqueInput + } + + export type AttachmentCreateNestedManyWithoutMissionInput = { + create?: XOR | AttachmentCreateWithoutMissionInput[] | AttachmentUncheckedCreateWithoutMissionInput[] + connectOrCreate?: AttachmentCreateOrConnectWithoutMissionInput | AttachmentCreateOrConnectWithoutMissionInput[] + createMany?: AttachmentCreateManyMissionInputEnvelope + connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + } + + export type MissionUserCreateNestedManyWithoutMissionInput = { + create?: XOR | MissionUserCreateWithoutMissionInput[] | MissionUserUncheckedCreateWithoutMissionInput[] + connectOrCreate?: MissionUserCreateOrConnectWithoutMissionInput | MissionUserCreateOrConnectWithoutMissionInput[] + createMany?: MissionUserCreateManyMissionInputEnvelope + connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + } + + export type AttachmentUncheckedCreateNestedManyWithoutMissionInput = { + create?: XOR | AttachmentCreateWithoutMissionInput[] | AttachmentUncheckedCreateWithoutMissionInput[] + connectOrCreate?: AttachmentCreateOrConnectWithoutMissionInput | AttachmentCreateOrConnectWithoutMissionInput[] + createMany?: AttachmentCreateManyMissionInputEnvelope + connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + } + + export type MissionUserUncheckedCreateNestedManyWithoutMissionInput = { + create?: XOR | MissionUserCreateWithoutMissionInput[] | MissionUserUncheckedCreateWithoutMissionInput[] + connectOrCreate?: MissionUserCreateOrConnectWithoutMissionInput | MissionUserCreateOrConnectWithoutMissionInput[] + createMany?: MissionUserCreateManyMissionInputEnvelope + connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + } + + export type MissionUpdateoddScopeInput = { + set?: string[] + push?: string | string[] + } + + export type MissionUpdateservicesInput = { + set?: string[] + push?: string | string[] + } + + export type MissionUpdateprofilsInput = { + set?: string[] + push?: string | string[] + } + + export type UserUpdateOneRequiredWithoutMissionsNestedInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutMissionsInput + upsert?: UserUpsertWithoutMissionsInput + connect?: UserWhereUniqueInput + update?: XOR, UserUncheckedUpdateWithoutMissionsInput> + } + + export type AttachmentUpdateManyWithoutMissionNestedInput = { + create?: XOR | AttachmentCreateWithoutMissionInput[] | AttachmentUncheckedCreateWithoutMissionInput[] + connectOrCreate?: AttachmentCreateOrConnectWithoutMissionInput | AttachmentCreateOrConnectWithoutMissionInput[] + upsert?: AttachmentUpsertWithWhereUniqueWithoutMissionInput | AttachmentUpsertWithWhereUniqueWithoutMissionInput[] + createMany?: AttachmentCreateManyMissionInputEnvelope + set?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + disconnect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + delete?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + update?: AttachmentUpdateWithWhereUniqueWithoutMissionInput | AttachmentUpdateWithWhereUniqueWithoutMissionInput[] + updateMany?: AttachmentUpdateManyWithWhereWithoutMissionInput | AttachmentUpdateManyWithWhereWithoutMissionInput[] + deleteMany?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[] + } + + export type MissionUserUpdateManyWithoutMissionNestedInput = { + create?: XOR | MissionUserCreateWithoutMissionInput[] | MissionUserUncheckedCreateWithoutMissionInput[] + connectOrCreate?: MissionUserCreateOrConnectWithoutMissionInput | MissionUserCreateOrConnectWithoutMissionInput[] + upsert?: MissionUserUpsertWithWhereUniqueWithoutMissionInput | MissionUserUpsertWithWhereUniqueWithoutMissionInput[] + createMany?: MissionUserCreateManyMissionInputEnvelope + set?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + disconnect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + delete?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + update?: MissionUserUpdateWithWhereUniqueWithoutMissionInput | MissionUserUpdateWithWhereUniqueWithoutMissionInput[] + updateMany?: MissionUserUpdateManyWithWhereWithoutMissionInput | MissionUserUpdateManyWithWhereWithoutMissionInput[] + deleteMany?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[] + } + + export type AttachmentUncheckedUpdateManyWithoutMissionNestedInput = { + create?: XOR | AttachmentCreateWithoutMissionInput[] | AttachmentUncheckedCreateWithoutMissionInput[] + connectOrCreate?: AttachmentCreateOrConnectWithoutMissionInput | AttachmentCreateOrConnectWithoutMissionInput[] + upsert?: AttachmentUpsertWithWhereUniqueWithoutMissionInput | AttachmentUpsertWithWhereUniqueWithoutMissionInput[] + createMany?: AttachmentCreateManyMissionInputEnvelope + set?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + disconnect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + delete?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + connect?: AttachmentWhereUniqueInput | AttachmentWhereUniqueInput[] + update?: AttachmentUpdateWithWhereUniqueWithoutMissionInput | AttachmentUpdateWithWhereUniqueWithoutMissionInput[] + updateMany?: AttachmentUpdateManyWithWhereWithoutMissionInput | AttachmentUpdateManyWithWhereWithoutMissionInput[] + deleteMany?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[] + } + + export type MissionUserUncheckedUpdateManyWithoutMissionNestedInput = { + create?: XOR | MissionUserCreateWithoutMissionInput[] | MissionUserUncheckedCreateWithoutMissionInput[] + connectOrCreate?: MissionUserCreateOrConnectWithoutMissionInput | MissionUserCreateOrConnectWithoutMissionInput[] + upsert?: MissionUserUpsertWithWhereUniqueWithoutMissionInput | MissionUserUpsertWithWhereUniqueWithoutMissionInput[] + createMany?: MissionUserCreateManyMissionInputEnvelope + set?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + disconnect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + delete?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + connect?: MissionUserWhereUniqueInput | MissionUserWhereUniqueInput[] + update?: MissionUserUpdateWithWhereUniqueWithoutMissionInput | MissionUserUpdateWithWhereUniqueWithoutMissionInput[] + updateMany?: MissionUserUpdateManyWithWhereWithoutMissionInput | MissionUserUpdateManyWithWhereWithoutMissionInput[] + deleteMany?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[] + } + + export type MissionCreateNestedOneWithoutAttachmentsInput = { + create?: XOR + connectOrCreate?: MissionCreateOrConnectWithoutAttachmentsInput + connect?: MissionWhereUniqueInput + } + + export type UserCreateNestedOneWithoutUploadedAttachmentsInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutUploadedAttachmentsInput + connect?: UserWhereUniqueInput + } + + export type MissionUpdateOneRequiredWithoutAttachmentsNestedInput = { + create?: XOR + connectOrCreate?: MissionCreateOrConnectWithoutAttachmentsInput + upsert?: MissionUpsertWithoutAttachmentsInput + connect?: MissionWhereUniqueInput + update?: XOR, MissionUncheckedUpdateWithoutAttachmentsInput> + } + + export type UserUpdateOneRequiredWithoutUploadedAttachmentsNestedInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutUploadedAttachmentsInput + upsert?: UserUpsertWithoutUploadedAttachmentsInput + connect?: UserWhereUniqueInput + update?: XOR, UserUncheckedUpdateWithoutUploadedAttachmentsInput> + } + + export type MissionCreateNestedOneWithoutMissionUsersInput = { + create?: XOR + connectOrCreate?: MissionCreateOrConnectWithoutMissionUsersInput + connect?: MissionWhereUniqueInput + } + + export type UserCreateNestedOneWithoutMissionUsersInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutMissionUsersInput + connect?: UserWhereUniqueInput + } + + export type MissionUpdateOneRequiredWithoutMissionUsersNestedInput = { + create?: XOR + connectOrCreate?: MissionCreateOrConnectWithoutMissionUsersInput + upsert?: MissionUpsertWithoutMissionUsersInput + connect?: MissionWhereUniqueInput + update?: XOR, MissionUncheckedUpdateWithoutMissionUsersInput> + } + + export type UserUpdateOneRequiredWithoutMissionUsersNestedInput = { + create?: XOR + connectOrCreate?: UserCreateOrConnectWithoutMissionUsersInput + upsert?: UserUpsertWithoutMissionUsersInput + connect?: UserWhereUniqueInput + update?: XOR, UserUncheckedUpdateWithoutMissionUsersInput> + } + export type NestedStringFilter<$PrismaModel = never> = { equals?: string | StringFieldRefInput<$PrismaModel> in?: string[] | ListStringFieldRefInput<$PrismaModel> @@ -8818,6 +15398,17 @@ export namespace Prisma { _max?: NestedBoolFilter<$PrismaModel> } + export type NestedDateTimeNullableFilter<$PrismaModel = never> = { + equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> + not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null + } + export type NestedBoolNullableFilter<$PrismaModel = never> = { equals?: boolean | BooleanFieldRefInput<$PrismaModel> | null not?: NestedBoolNullableFilter<$PrismaModel> | boolean | null @@ -8850,6 +15441,20 @@ export namespace Prisma { not?: NestedFloatFilter<$PrismaModel> | number } + export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null + in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null + notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null + lt?: Date | string | DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | DateTimeFieldRefInput<$PrismaModel> + not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null + _count?: NestedIntNullableFilter<$PrismaModel> + _min?: NestedDateTimeNullableFilter<$PrismaModel> + _max?: NestedDateTimeNullableFilter<$PrismaModel> + } + export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: number | IntFieldRefInput<$PrismaModel> | null in?: number[] | ListIntFieldRefInput<$PrismaModel> | null @@ -8954,10 +15559,14 @@ export namespace Prisma { export type MailCredentialsCreateWithoutUserInput = { id?: string email: string - password: string + password?: string | null host: string port: number secure?: boolean + use_oauth?: boolean + refresh_token?: string | null + access_token?: string | null + token_expiry?: Date | string | null smtp_host?: string | null smtp_port?: number | null smtp_secure?: boolean | null @@ -8970,10 +15579,14 @@ export namespace Prisma { export type MailCredentialsUncheckedCreateWithoutUserInput = { id?: string email: string - password: string + password?: string | null host: string port: number secure?: boolean + use_oauth?: boolean + refresh_token?: string | null + access_token?: string | null + token_expiry?: Date | string | null smtp_host?: string | null smtp_port?: number | null smtp_secure?: boolean | null @@ -9014,6 +15627,140 @@ export namespace Prisma { create: XOR } + export type AnnouncementCreateWithoutAuthorInput = { + id?: string + title: string + content: string + createdAt?: Date | string + updatedAt?: Date | string + targetRoles?: AnnouncementCreatetargetRolesInput | string[] + } + + export type AnnouncementUncheckedCreateWithoutAuthorInput = { + id?: string + title: string + content: string + createdAt?: Date | string + updatedAt?: Date | string + targetRoles?: AnnouncementCreatetargetRolesInput | string[] + } + + export type AnnouncementCreateOrConnectWithoutAuthorInput = { + where: AnnouncementWhereUniqueInput + create: XOR + } + + export type AnnouncementCreateManyAuthorInputEnvelope = { + data: AnnouncementCreateManyAuthorInput | AnnouncementCreateManyAuthorInput[] + skipDuplicates?: boolean + } + + export type MissionCreateWithoutCreatorInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + attachments?: AttachmentCreateNestedManyWithoutMissionInput + missionUsers?: MissionUserCreateNestedManyWithoutMissionInput + } + + export type MissionUncheckedCreateWithoutCreatorInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + attachments?: AttachmentUncheckedCreateNestedManyWithoutMissionInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutMissionInput + } + + export type MissionCreateOrConnectWithoutCreatorInput = { + where: MissionWhereUniqueInput + create: XOR + } + + export type MissionCreateManyCreatorInputEnvelope = { + data: MissionCreateManyCreatorInput | MissionCreateManyCreatorInput[] + skipDuplicates?: boolean + } + + export type MissionUserCreateWithoutUserInput = { + id?: string + role: string + createdAt?: Date | string + updatedAt?: Date | string + mission: MissionCreateNestedOneWithoutMissionUsersInput + } + + export type MissionUserUncheckedCreateWithoutUserInput = { + id?: string + role: string + createdAt?: Date | string + updatedAt?: Date | string + missionId: string + } + + export type MissionUserCreateOrConnectWithoutUserInput = { + where: MissionUserWhereUniqueInput + create: XOR + } + + export type MissionUserCreateManyUserInputEnvelope = { + data: MissionUserCreateManyUserInput | MissionUserCreateManyUserInput[] + skipDuplicates?: boolean + } + + export type AttachmentCreateWithoutUploaderInput = { + id?: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt?: Date | string + updatedAt?: Date | string + mission: MissionCreateNestedOneWithoutAttachmentsInput + } + + export type AttachmentUncheckedCreateWithoutUploaderInput = { + id?: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt?: Date | string + updatedAt?: Date | string + missionId: string + } + + export type AttachmentCreateOrConnectWithoutUploaderInput = { + where: AttachmentWhereUniqueInput + create: XOR + } + + export type AttachmentCreateManyUploaderInputEnvelope = { + data: AttachmentCreateManyUploaderInput | AttachmentCreateManyUploaderInput[] + skipDuplicates?: boolean + } + export type CalendarUpsertWithWhereUniqueWithoutUserInput = { where: CalendarWhereUniqueInput update: XOR @@ -9099,10 +15846,14 @@ export namespace Prisma { id?: StringFilter<"MailCredentials"> | string userId?: StringFilter<"MailCredentials"> | string email?: StringFilter<"MailCredentials"> | string - password?: StringFilter<"MailCredentials"> | string + password?: StringNullableFilter<"MailCredentials"> | string | null host?: StringFilter<"MailCredentials"> | string port?: IntFilter<"MailCredentials"> | number secure?: BoolFilter<"MailCredentials"> | boolean + use_oauth?: BoolFilter<"MailCredentials"> | boolean + refresh_token?: StringNullableFilter<"MailCredentials"> | string | null + access_token?: StringNullableFilter<"MailCredentials"> | string | null + token_expiry?: DateTimeNullableFilter<"MailCredentials"> | Date | string | null smtp_host?: StringNullableFilter<"MailCredentials"> | string | null smtp_port?: IntNullableFilter<"MailCredentials"> | number | null smtp_secure?: BoolNullableFilter<"MailCredentials"> | boolean | null @@ -9139,6 +15890,131 @@ export namespace Prisma { updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } + export type AnnouncementUpsertWithWhereUniqueWithoutAuthorInput = { + where: AnnouncementWhereUniqueInput + update: XOR + create: XOR + } + + export type AnnouncementUpdateWithWhereUniqueWithoutAuthorInput = { + where: AnnouncementWhereUniqueInput + data: XOR + } + + export type AnnouncementUpdateManyWithWhereWithoutAuthorInput = { + where: AnnouncementScalarWhereInput + data: XOR + } + + export type AnnouncementScalarWhereInput = { + AND?: AnnouncementScalarWhereInput | AnnouncementScalarWhereInput[] + OR?: AnnouncementScalarWhereInput[] + NOT?: AnnouncementScalarWhereInput | AnnouncementScalarWhereInput[] + id?: StringFilter<"Announcement"> | string + title?: StringFilter<"Announcement"> | string + content?: StringFilter<"Announcement"> | string + createdAt?: DateTimeFilter<"Announcement"> | Date | string + updatedAt?: DateTimeFilter<"Announcement"> | Date | string + authorId?: StringFilter<"Announcement"> | string + targetRoles?: StringNullableListFilter<"Announcement"> + } + + export type MissionUpsertWithWhereUniqueWithoutCreatorInput = { + where: MissionWhereUniqueInput + update: XOR + create: XOR + } + + export type MissionUpdateWithWhereUniqueWithoutCreatorInput = { + where: MissionWhereUniqueInput + data: XOR + } + + export type MissionUpdateManyWithWhereWithoutCreatorInput = { + where: MissionScalarWhereInput + data: XOR + } + + export type MissionScalarWhereInput = { + AND?: MissionScalarWhereInput | MissionScalarWhereInput[] + OR?: MissionScalarWhereInput[] + NOT?: MissionScalarWhereInput | MissionScalarWhereInput[] + id?: StringFilter<"Mission"> | string + name?: StringFilter<"Mission"> | string + logo?: StringNullableFilter<"Mission"> | string | null + oddScope?: StringNullableListFilter<"Mission"> + niveau?: StringFilter<"Mission"> | string + intention?: StringFilter<"Mission"> | string + missionType?: StringFilter<"Mission"> | string + donneurDOrdre?: StringFilter<"Mission"> | string + projection?: StringFilter<"Mission"> | string + services?: StringNullableListFilter<"Mission"> + participation?: StringNullableFilter<"Mission"> | string | null + profils?: StringNullableListFilter<"Mission"> + createdAt?: DateTimeFilter<"Mission"> | Date | string + updatedAt?: DateTimeFilter<"Mission"> | Date | string + creatorId?: StringFilter<"Mission"> | string + } + + export type MissionUserUpsertWithWhereUniqueWithoutUserInput = { + where: MissionUserWhereUniqueInput + update: XOR + create: XOR + } + + export type MissionUserUpdateWithWhereUniqueWithoutUserInput = { + where: MissionUserWhereUniqueInput + data: XOR + } + + export type MissionUserUpdateManyWithWhereWithoutUserInput = { + where: MissionUserScalarWhereInput + data: XOR + } + + export type MissionUserScalarWhereInput = { + AND?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[] + OR?: MissionUserScalarWhereInput[] + NOT?: MissionUserScalarWhereInput | MissionUserScalarWhereInput[] + id?: StringFilter<"MissionUser"> | string + role?: StringFilter<"MissionUser"> | string + createdAt?: DateTimeFilter<"MissionUser"> | Date | string + updatedAt?: DateTimeFilter<"MissionUser"> | Date | string + missionId?: StringFilter<"MissionUser"> | string + userId?: StringFilter<"MissionUser"> | string + } + + export type AttachmentUpsertWithWhereUniqueWithoutUploaderInput = { + where: AttachmentWhereUniqueInput + update: XOR + create: XOR + } + + export type AttachmentUpdateWithWhereUniqueWithoutUploaderInput = { + where: AttachmentWhereUniqueInput + data: XOR + } + + export type AttachmentUpdateManyWithWhereWithoutUploaderInput = { + where: AttachmentScalarWhereInput + data: XOR + } + + export type AttachmentScalarWhereInput = { + AND?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[] + OR?: AttachmentScalarWhereInput[] + NOT?: AttachmentScalarWhereInput | AttachmentScalarWhereInput[] + id?: StringFilter<"Attachment"> | string + filename?: StringFilter<"Attachment"> | string + filePath?: StringFilter<"Attachment"> | string + fileType?: StringFilter<"Attachment"> | string + fileSize?: IntFilter<"Attachment"> | number + createdAt?: DateTimeFilter<"Attachment"> | Date | string + updatedAt?: DateTimeFilter<"Attachment"> | Date | string + missionId?: StringFilter<"Attachment"> | string + uploaderId?: StringFilter<"Attachment"> | string + } + export type EventCreateWithoutCalendarInput = { id?: string title: string @@ -9184,6 +16060,10 @@ export namespace Prisma { events?: EventCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput + announcements?: AnnouncementCreateNestedManyWithoutAuthorInput + missions?: MissionCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput } export type UserUncheckedCreateWithoutCalendarsInput = { @@ -9195,6 +16075,10 @@ export namespace Prisma { events?: EventUncheckedCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput + announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput + missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput } export type UserCreateOrConnectWithoutCalendarsInput = { @@ -9238,6 +16122,10 @@ export namespace Prisma { events?: EventUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput + missions?: MissionUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput } export type UserUncheckedUpdateWithoutCalendarsInput = { @@ -9249,6 +16137,10 @@ export namespace Prisma { events?: EventUncheckedUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput + missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput } export type CalendarCreateWithoutEventsInput = { @@ -9285,6 +16177,10 @@ export namespace Prisma { calendars?: CalendarCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput + announcements?: AnnouncementCreateNestedManyWithoutAuthorInput + missions?: MissionCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput } export type UserUncheckedCreateWithoutEventsInput = { @@ -9296,6 +16192,10 @@ export namespace Prisma { calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput + announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput + missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput } export type UserCreateOrConnectWithoutEventsInput = { @@ -9354,6 +16254,10 @@ export namespace Prisma { calendars?: CalendarUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput + missions?: MissionUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput } export type UserUncheckedUpdateWithoutEventsInput = { @@ -9365,6 +16269,10 @@ export namespace Prisma { calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput + missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput } export type UserCreateWithoutMailCredentialsInput = { @@ -9376,6 +16284,10 @@ export namespace Prisma { calendars?: CalendarCreateNestedManyWithoutUserInput events?: EventCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput + announcements?: AnnouncementCreateNestedManyWithoutAuthorInput + missions?: MissionCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput } export type UserUncheckedCreateWithoutMailCredentialsInput = { @@ -9387,6 +16299,10 @@ export namespace Prisma { calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput events?: EventUncheckedCreateNestedManyWithoutUserInput webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput + announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput + missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput } export type UserCreateOrConnectWithoutMailCredentialsInput = { @@ -9414,6 +16330,10 @@ export namespace Prisma { calendars?: CalendarUpdateManyWithoutUserNestedInput events?: EventUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput + missions?: MissionUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput } export type UserUncheckedUpdateWithoutMailCredentialsInput = { @@ -9425,6 +16345,10 @@ export namespace Prisma { calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput events?: EventUncheckedUpdateManyWithoutUserNestedInput webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput + missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput } export type UserCreateWithoutWebdavCredentialsInput = { @@ -9436,6 +16360,10 @@ export namespace Prisma { calendars?: CalendarCreateNestedManyWithoutUserInput events?: EventCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput + announcements?: AnnouncementCreateNestedManyWithoutAuthorInput + missions?: MissionCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput } export type UserUncheckedCreateWithoutWebdavCredentialsInput = { @@ -9447,6 +16375,10 @@ export namespace Prisma { calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput events?: EventUncheckedCreateNestedManyWithoutUserInput mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput + announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput + missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput } export type UserCreateOrConnectWithoutWebdavCredentialsInput = { @@ -9474,6 +16406,10 @@ export namespace Prisma { calendars?: CalendarUpdateManyWithoutUserNestedInput events?: EventUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput + announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput + missions?: MissionUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput } export type UserUncheckedUpdateWithoutWebdavCredentialsInput = { @@ -9485,6 +16421,588 @@ export namespace Prisma { calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput events?: EventUncheckedUpdateManyWithoutUserNestedInput mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput + announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput + missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput + } + + export type UserCreateWithoutAnnouncementsInput = { + id?: string + email: string + password: string + createdAt?: Date | string + updatedAt?: Date | string + calendars?: CalendarCreateNestedManyWithoutUserInput + events?: EventCreateNestedManyWithoutUserInput + mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput + webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput + missions?: MissionCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput + } + + export type UserUncheckedCreateWithoutAnnouncementsInput = { + id?: string + email: string + password: string + createdAt?: Date | string + updatedAt?: Date | string + calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput + events?: EventUncheckedCreateNestedManyWithoutUserInput + mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput + webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput + missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput + } + + export type UserCreateOrConnectWithoutAnnouncementsInput = { + where: UserWhereUniqueInput + create: XOR + } + + export type UserUpsertWithoutAnnouncementsInput = { + update: XOR + create: XOR + where?: UserWhereInput + } + + export type UserUpdateToOneWithWhereWithoutAnnouncementsInput = { + where?: UserWhereInput + data: XOR + } + + export type UserUpdateWithoutAnnouncementsInput = { + id?: StringFieldUpdateOperationsInput | string + email?: StringFieldUpdateOperationsInput | string + password?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + calendars?: CalendarUpdateManyWithoutUserNestedInput + events?: EventUpdateManyWithoutUserNestedInput + mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput + webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput + missions?: MissionUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput + } + + export type UserUncheckedUpdateWithoutAnnouncementsInput = { + id?: StringFieldUpdateOperationsInput | string + email?: StringFieldUpdateOperationsInput | string + password?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput + events?: EventUncheckedUpdateManyWithoutUserNestedInput + mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput + webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput + missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput + } + + export type UserCreateWithoutMissionsInput = { + id?: string + email: string + password: string + createdAt?: Date | string + updatedAt?: Date | string + calendars?: CalendarCreateNestedManyWithoutUserInput + events?: EventCreateNestedManyWithoutUserInput + mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput + webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput + announcements?: AnnouncementCreateNestedManyWithoutAuthorInput + missionUsers?: MissionUserCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput + } + + export type UserUncheckedCreateWithoutMissionsInput = { + id?: string + email: string + password: string + createdAt?: Date | string + updatedAt?: Date | string + calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput + events?: EventUncheckedCreateNestedManyWithoutUserInput + mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput + webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput + announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput + uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput + } + + export type UserCreateOrConnectWithoutMissionsInput = { + where: UserWhereUniqueInput + create: XOR + } + + export type AttachmentCreateWithoutMissionInput = { + id?: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt?: Date | string + updatedAt?: Date | string + uploader: UserCreateNestedOneWithoutUploadedAttachmentsInput + } + + export type AttachmentUncheckedCreateWithoutMissionInput = { + id?: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt?: Date | string + updatedAt?: Date | string + uploaderId: string + } + + export type AttachmentCreateOrConnectWithoutMissionInput = { + where: AttachmentWhereUniqueInput + create: XOR + } + + export type AttachmentCreateManyMissionInputEnvelope = { + data: AttachmentCreateManyMissionInput | AttachmentCreateManyMissionInput[] + skipDuplicates?: boolean + } + + export type MissionUserCreateWithoutMissionInput = { + id?: string + role: string + createdAt?: Date | string + updatedAt?: Date | string + user: UserCreateNestedOneWithoutMissionUsersInput + } + + export type MissionUserUncheckedCreateWithoutMissionInput = { + id?: string + role: string + createdAt?: Date | string + updatedAt?: Date | string + userId: string + } + + export type MissionUserCreateOrConnectWithoutMissionInput = { + where: MissionUserWhereUniqueInput + create: XOR + } + + export type MissionUserCreateManyMissionInputEnvelope = { + data: MissionUserCreateManyMissionInput | MissionUserCreateManyMissionInput[] + skipDuplicates?: boolean + } + + export type UserUpsertWithoutMissionsInput = { + update: XOR + create: XOR + where?: UserWhereInput + } + + export type UserUpdateToOneWithWhereWithoutMissionsInput = { + where?: UserWhereInput + data: XOR + } + + export type UserUpdateWithoutMissionsInput = { + id?: StringFieldUpdateOperationsInput | string + email?: StringFieldUpdateOperationsInput | string + password?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + calendars?: CalendarUpdateManyWithoutUserNestedInput + events?: EventUpdateManyWithoutUserNestedInput + mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput + webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput + missionUsers?: MissionUserUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput + } + + export type UserUncheckedUpdateWithoutMissionsInput = { + id?: StringFieldUpdateOperationsInput | string + email?: StringFieldUpdateOperationsInput | string + password?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput + events?: EventUncheckedUpdateManyWithoutUserNestedInput + mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput + webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput + uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput + } + + export type AttachmentUpsertWithWhereUniqueWithoutMissionInput = { + where: AttachmentWhereUniqueInput + update: XOR + create: XOR + } + + export type AttachmentUpdateWithWhereUniqueWithoutMissionInput = { + where: AttachmentWhereUniqueInput + data: XOR + } + + export type AttachmentUpdateManyWithWhereWithoutMissionInput = { + where: AttachmentScalarWhereInput + data: XOR + } + + export type MissionUserUpsertWithWhereUniqueWithoutMissionInput = { + where: MissionUserWhereUniqueInput + update: XOR + create: XOR + } + + export type MissionUserUpdateWithWhereUniqueWithoutMissionInput = { + where: MissionUserWhereUniqueInput + data: XOR + } + + export type MissionUserUpdateManyWithWhereWithoutMissionInput = { + where: MissionUserScalarWhereInput + data: XOR + } + + export type MissionCreateWithoutAttachmentsInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + creator: UserCreateNestedOneWithoutMissionsInput + missionUsers?: MissionUserCreateNestedManyWithoutMissionInput + } + + export type MissionUncheckedCreateWithoutAttachmentsInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + creatorId: string + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutMissionInput + } + + export type MissionCreateOrConnectWithoutAttachmentsInput = { + where: MissionWhereUniqueInput + create: XOR + } + + export type UserCreateWithoutUploadedAttachmentsInput = { + id?: string + email: string + password: string + createdAt?: Date | string + updatedAt?: Date | string + calendars?: CalendarCreateNestedManyWithoutUserInput + events?: EventCreateNestedManyWithoutUserInput + mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput + webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput + announcements?: AnnouncementCreateNestedManyWithoutAuthorInput + missions?: MissionCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserCreateNestedManyWithoutUserInput + } + + export type UserUncheckedCreateWithoutUploadedAttachmentsInput = { + id?: string + email: string + password: string + createdAt?: Date | string + updatedAt?: Date | string + calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput + events?: EventUncheckedCreateNestedManyWithoutUserInput + mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput + webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput + announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput + missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput + missionUsers?: MissionUserUncheckedCreateNestedManyWithoutUserInput + } + + export type UserCreateOrConnectWithoutUploadedAttachmentsInput = { + where: UserWhereUniqueInput + create: XOR + } + + export type MissionUpsertWithoutAttachmentsInput = { + update: XOR + create: XOR + where?: MissionWhereInput + } + + export type MissionUpdateToOneWithWhereWithoutAttachmentsInput = { + where?: MissionWhereInput + data: XOR + } + + export type MissionUpdateWithoutAttachmentsInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + creator?: UserUpdateOneRequiredWithoutMissionsNestedInput + missionUsers?: MissionUserUpdateManyWithoutMissionNestedInput + } + + export type MissionUncheckedUpdateWithoutAttachmentsInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: StringFieldUpdateOperationsInput | string + missionUsers?: MissionUserUncheckedUpdateManyWithoutMissionNestedInput + } + + export type UserUpsertWithoutUploadedAttachmentsInput = { + update: XOR + create: XOR + where?: UserWhereInput + } + + export type UserUpdateToOneWithWhereWithoutUploadedAttachmentsInput = { + where?: UserWhereInput + data: XOR + } + + export type UserUpdateWithoutUploadedAttachmentsInput = { + id?: StringFieldUpdateOperationsInput | string + email?: StringFieldUpdateOperationsInput | string + password?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + calendars?: CalendarUpdateManyWithoutUserNestedInput + events?: EventUpdateManyWithoutUserNestedInput + mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput + webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput + missions?: MissionUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUpdateManyWithoutUserNestedInput + } + + export type UserUncheckedUpdateWithoutUploadedAttachmentsInput = { + id?: StringFieldUpdateOperationsInput | string + email?: StringFieldUpdateOperationsInput | string + password?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput + events?: EventUncheckedUpdateManyWithoutUserNestedInput + mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput + webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput + missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutUserNestedInput + } + + export type MissionCreateWithoutMissionUsersInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + creator: UserCreateNestedOneWithoutMissionsInput + attachments?: AttachmentCreateNestedManyWithoutMissionInput + } + + export type MissionUncheckedCreateWithoutMissionUsersInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + creatorId: string + attachments?: AttachmentUncheckedCreateNestedManyWithoutMissionInput + } + + export type MissionCreateOrConnectWithoutMissionUsersInput = { + where: MissionWhereUniqueInput + create: XOR + } + + export type UserCreateWithoutMissionUsersInput = { + id?: string + email: string + password: string + createdAt?: Date | string + updatedAt?: Date | string + calendars?: CalendarCreateNestedManyWithoutUserInput + events?: EventCreateNestedManyWithoutUserInput + mailCredentials?: MailCredentialsCreateNestedManyWithoutUserInput + webdavCredentials?: WebDAVCredentialsCreateNestedOneWithoutUserInput + announcements?: AnnouncementCreateNestedManyWithoutAuthorInput + missions?: MissionCreateNestedManyWithoutCreatorInput + uploadedAttachments?: AttachmentCreateNestedManyWithoutUploaderInput + } + + export type UserUncheckedCreateWithoutMissionUsersInput = { + id?: string + email: string + password: string + createdAt?: Date | string + updatedAt?: Date | string + calendars?: CalendarUncheckedCreateNestedManyWithoutUserInput + events?: EventUncheckedCreateNestedManyWithoutUserInput + mailCredentials?: MailCredentialsUncheckedCreateNestedManyWithoutUserInput + webdavCredentials?: WebDAVCredentialsUncheckedCreateNestedOneWithoutUserInput + announcements?: AnnouncementUncheckedCreateNestedManyWithoutAuthorInput + missions?: MissionUncheckedCreateNestedManyWithoutCreatorInput + uploadedAttachments?: AttachmentUncheckedCreateNestedManyWithoutUploaderInput + } + + export type UserCreateOrConnectWithoutMissionUsersInput = { + where: UserWhereUniqueInput + create: XOR + } + + export type MissionUpsertWithoutMissionUsersInput = { + update: XOR + create: XOR + where?: MissionWhereInput + } + + export type MissionUpdateToOneWithWhereWithoutMissionUsersInput = { + where?: MissionWhereInput + data: XOR + } + + export type MissionUpdateWithoutMissionUsersInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + creator?: UserUpdateOneRequiredWithoutMissionsNestedInput + attachments?: AttachmentUpdateManyWithoutMissionNestedInput + } + + export type MissionUncheckedUpdateWithoutMissionUsersInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + creatorId?: StringFieldUpdateOperationsInput | string + attachments?: AttachmentUncheckedUpdateManyWithoutMissionNestedInput + } + + export type UserUpsertWithoutMissionUsersInput = { + update: XOR + create: XOR + where?: UserWhereInput + } + + export type UserUpdateToOneWithWhereWithoutMissionUsersInput = { + where?: UserWhereInput + data: XOR + } + + export type UserUpdateWithoutMissionUsersInput = { + id?: StringFieldUpdateOperationsInput | string + email?: StringFieldUpdateOperationsInput | string + password?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + calendars?: CalendarUpdateManyWithoutUserNestedInput + events?: EventUpdateManyWithoutUserNestedInput + mailCredentials?: MailCredentialsUpdateManyWithoutUserNestedInput + webdavCredentials?: WebDAVCredentialsUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUpdateManyWithoutAuthorNestedInput + missions?: MissionUpdateManyWithoutCreatorNestedInput + uploadedAttachments?: AttachmentUpdateManyWithoutUploaderNestedInput + } + + export type UserUncheckedUpdateWithoutMissionUsersInput = { + id?: StringFieldUpdateOperationsInput | string + email?: StringFieldUpdateOperationsInput | string + password?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + calendars?: CalendarUncheckedUpdateManyWithoutUserNestedInput + events?: EventUncheckedUpdateManyWithoutUserNestedInput + mailCredentials?: MailCredentialsUncheckedUpdateManyWithoutUserNestedInput + webdavCredentials?: WebDAVCredentialsUncheckedUpdateOneWithoutUserNestedInput + announcements?: AnnouncementUncheckedUpdateManyWithoutAuthorNestedInput + missions?: MissionUncheckedUpdateManyWithoutCreatorNestedInput + uploadedAttachments?: AttachmentUncheckedUpdateManyWithoutUploaderNestedInput } export type CalendarCreateManyUserInput = { @@ -9512,10 +17030,14 @@ export namespace Prisma { export type MailCredentialsCreateManyUserInput = { id?: string email: string - password: string + password?: string | null host: string port: number secure?: boolean + use_oauth?: boolean + refresh_token?: string | null + access_token?: string | null + token_expiry?: Date | string | null smtp_host?: string | null smtp_port?: number | null smtp_secure?: boolean | null @@ -9525,6 +17047,51 @@ export namespace Prisma { updatedAt?: Date | string } + export type AnnouncementCreateManyAuthorInput = { + id?: string + title: string + content: string + createdAt?: Date | string + updatedAt?: Date | string + targetRoles?: AnnouncementCreatetargetRolesInput | string[] + } + + export type MissionCreateManyCreatorInput = { + id?: string + name: string + logo?: string | null + oddScope?: MissionCreateoddScopeInput | string[] + niveau: string + intention: string + missionType: string + donneurDOrdre: string + projection: string + services?: MissionCreateservicesInput | string[] + participation?: string | null + profils?: MissionCreateprofilsInput | string[] + createdAt?: Date | string + updatedAt?: Date | string + } + + export type MissionUserCreateManyUserInput = { + id?: string + role: string + createdAt?: Date | string + updatedAt?: Date | string + missionId: string + } + + export type AttachmentCreateManyUploaderInput = { + id?: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt?: Date | string + updatedAt?: Date | string + missionId: string + } + export type CalendarUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string name?: StringFieldUpdateOperationsInput | string @@ -9596,10 +17163,14 @@ export namespace Prisma { export type MailCredentialsUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string + password?: NullableStringFieldUpdateOperationsInput | string | null host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number secure?: BoolFieldUpdateOperationsInput | boolean + use_oauth?: BoolFieldUpdateOperationsInput | boolean + refresh_token?: NullableStringFieldUpdateOperationsInput | string | null + access_token?: NullableStringFieldUpdateOperationsInput | string | null + token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null smtp_host?: NullableStringFieldUpdateOperationsInput | string | null smtp_port?: NullableIntFieldUpdateOperationsInput | number | null smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null @@ -9612,10 +17183,14 @@ export namespace Prisma { export type MailCredentialsUncheckedUpdateWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string + password?: NullableStringFieldUpdateOperationsInput | string | null host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number secure?: BoolFieldUpdateOperationsInput | boolean + use_oauth?: BoolFieldUpdateOperationsInput | boolean + refresh_token?: NullableStringFieldUpdateOperationsInput | string | null + access_token?: NullableStringFieldUpdateOperationsInput | string | null + token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null smtp_host?: NullableStringFieldUpdateOperationsInput | string | null smtp_port?: NullableIntFieldUpdateOperationsInput | number | null smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null @@ -9628,10 +17203,14 @@ export namespace Prisma { export type MailCredentialsUncheckedUpdateManyWithoutUserInput = { id?: StringFieldUpdateOperationsInput | string email?: StringFieldUpdateOperationsInput | string - password?: StringFieldUpdateOperationsInput | string + password?: NullableStringFieldUpdateOperationsInput | string | null host?: StringFieldUpdateOperationsInput | string port?: IntFieldUpdateOperationsInput | number secure?: BoolFieldUpdateOperationsInput | boolean + use_oauth?: BoolFieldUpdateOperationsInput | boolean + refresh_token?: NullableStringFieldUpdateOperationsInput | string | null + access_token?: NullableStringFieldUpdateOperationsInput | string | null + token_expiry?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null smtp_host?: NullableStringFieldUpdateOperationsInput | string | null smtp_port?: NullableIntFieldUpdateOperationsInput | number | null smtp_secure?: NullableBoolFieldUpdateOperationsInput | boolean | null @@ -9641,6 +17220,145 @@ export namespace Prisma { updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } + export type AnnouncementUpdateWithoutAuthorInput = { + id?: StringFieldUpdateOperationsInput | string + title?: StringFieldUpdateOperationsInput | string + content?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + targetRoles?: AnnouncementUpdatetargetRolesInput | string[] + } + + export type AnnouncementUncheckedUpdateWithoutAuthorInput = { + id?: StringFieldUpdateOperationsInput | string + title?: StringFieldUpdateOperationsInput | string + content?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + targetRoles?: AnnouncementUpdatetargetRolesInput | string[] + } + + export type AnnouncementUncheckedUpdateManyWithoutAuthorInput = { + id?: StringFieldUpdateOperationsInput | string + title?: StringFieldUpdateOperationsInput | string + content?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + targetRoles?: AnnouncementUpdatetargetRolesInput | string[] + } + + export type MissionUpdateWithoutCreatorInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + attachments?: AttachmentUpdateManyWithoutMissionNestedInput + missionUsers?: MissionUserUpdateManyWithoutMissionNestedInput + } + + export type MissionUncheckedUpdateWithoutCreatorInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + attachments?: AttachmentUncheckedUpdateManyWithoutMissionNestedInput + missionUsers?: MissionUserUncheckedUpdateManyWithoutMissionNestedInput + } + + export type MissionUncheckedUpdateManyWithoutCreatorInput = { + id?: StringFieldUpdateOperationsInput | string + name?: StringFieldUpdateOperationsInput | string + logo?: NullableStringFieldUpdateOperationsInput | string | null + oddScope?: MissionUpdateoddScopeInput | string[] + niveau?: StringFieldUpdateOperationsInput | string + intention?: StringFieldUpdateOperationsInput | string + missionType?: StringFieldUpdateOperationsInput | string + donneurDOrdre?: StringFieldUpdateOperationsInput | string + projection?: StringFieldUpdateOperationsInput | string + services?: MissionUpdateservicesInput | string[] + participation?: NullableStringFieldUpdateOperationsInput | string | null + profils?: MissionUpdateprofilsInput | string[] + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + } + + export type MissionUserUpdateWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + mission?: MissionUpdateOneRequiredWithoutMissionUsersNestedInput + } + + export type MissionUserUncheckedUpdateWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + missionId?: StringFieldUpdateOperationsInput | string + } + + export type MissionUserUncheckedUpdateManyWithoutUserInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + missionId?: StringFieldUpdateOperationsInput | string + } + + export type AttachmentUpdateWithoutUploaderInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + mission?: MissionUpdateOneRequiredWithoutAttachmentsNestedInput + } + + export type AttachmentUncheckedUpdateWithoutUploaderInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + missionId?: StringFieldUpdateOperationsInput | string + } + + export type AttachmentUncheckedUpdateManyWithoutUploaderInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + missionId?: StringFieldUpdateOperationsInput | string + } + export type EventCreateManyCalendarInput = { id?: string title: string @@ -9693,6 +17411,82 @@ export namespace Prisma { updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string } + export type AttachmentCreateManyMissionInput = { + id?: string + filename: string + filePath: string + fileType: string + fileSize: number + createdAt?: Date | string + updatedAt?: Date | string + uploaderId: string + } + + export type MissionUserCreateManyMissionInput = { + id?: string + role: string + createdAt?: Date | string + updatedAt?: Date | string + userId: string + } + + export type AttachmentUpdateWithoutMissionInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + uploader?: UserUpdateOneRequiredWithoutUploadedAttachmentsNestedInput + } + + export type AttachmentUncheckedUpdateWithoutMissionInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + uploaderId?: StringFieldUpdateOperationsInput | string + } + + export type AttachmentUncheckedUpdateManyWithoutMissionInput = { + id?: StringFieldUpdateOperationsInput | string + filename?: StringFieldUpdateOperationsInput | string + filePath?: StringFieldUpdateOperationsInput | string + fileType?: StringFieldUpdateOperationsInput | string + fileSize?: IntFieldUpdateOperationsInput | number + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + uploaderId?: StringFieldUpdateOperationsInput | string + } + + export type MissionUserUpdateWithoutMissionInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + user?: UserUpdateOneRequiredWithoutMissionUsersNestedInput + } + + export type MissionUserUncheckedUpdateWithoutMissionInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + userId?: StringFieldUpdateOperationsInput | string + } + + export type MissionUserUncheckedUpdateManyWithoutMissionInput = { + id?: StringFieldUpdateOperationsInput | string + role?: StringFieldUpdateOperationsInput | string + createdAt?: DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string + userId?: StringFieldUpdateOperationsInput | string + } + /** diff --git a/node_modules/.prisma/client/index.js b/node_modules/.prisma/client/index.js index e075c57a..7662d564 100644 --- a/node_modules/.prisma/client/index.js +++ b/node_modules/.prisma/client/index.js @@ -130,6 +130,10 @@ exports.Prisma.MailCredentialsScalarFieldEnum = { host: 'host', port: 'port', secure: 'secure', + use_oauth: 'use_oauth', + refresh_token: 'refresh_token', + access_token: 'access_token', + token_expiry: 'token_expiry', smtp_host: 'smtp_host', smtp_port: 'smtp_port', smtp_secure: 'smtp_secure', @@ -148,6 +152,55 @@ exports.Prisma.WebDAVCredentialsScalarFieldEnum = { updatedAt: 'updatedAt' }; +exports.Prisma.AnnouncementScalarFieldEnum = { + id: 'id', + title: 'title', + content: 'content', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + authorId: 'authorId', + targetRoles: 'targetRoles' +}; + +exports.Prisma.MissionScalarFieldEnum = { + id: 'id', + name: 'name', + logo: 'logo', + oddScope: 'oddScope', + niveau: 'niveau', + intention: 'intention', + missionType: 'missionType', + donneurDOrdre: 'donneurDOrdre', + projection: 'projection', + services: 'services', + participation: 'participation', + profils: 'profils', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + creatorId: 'creatorId' +}; + +exports.Prisma.AttachmentScalarFieldEnum = { + id: 'id', + filename: 'filename', + filePath: 'filePath', + fileType: 'fileType', + fileSize: 'fileSize', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + uploaderId: 'uploaderId' +}; + +exports.Prisma.MissionUserScalarFieldEnum = { + id: 'id', + role: 'role', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + userId: 'userId' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -169,7 +222,11 @@ exports.Prisma.ModelName = { Calendar: 'Calendar', Event: 'Event', MailCredentials: 'MailCredentials', - WebDAVCredentials: 'WebDAVCredentials' + WebDAVCredentials: 'WebDAVCredentials', + Announcement: 'Announcement', + Mission: 'Mission', + Attachment: 'Attachment', + MissionUser: 'MissionUser' }; /** * Create the Client @@ -182,7 +239,7 @@ const config = { "value": "prisma-client-js" }, "output": { - "value": "/Users/alma/Documents/NeahFront9/node_modules/@prisma/client", + "value": "/Users/alma/Documents/NeahNew/node_modules/@prisma/client", "fromEnvVar": null }, "config": { @@ -200,7 +257,7 @@ const config = { } ], "previewFeatures": [], - "sourceFilePath": "/Users/alma/Documents/NeahFront9/prisma/schema.prisma" + "sourceFilePath": "/Users/alma/Documents/NeahNew/prisma/schema.prisma" }, "relativeEnvPaths": { "rootEnvPath": null, @@ -222,8 +279,8 @@ const config = { } } }, - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n binaryTargets = [\"native\", \"linux-arm64-openssl-3.0.x\"]\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n email String @unique\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n calendars Calendar[]\n events Event[]\n mailCredentials MailCredentials[]\n webdavCredentials WebDAVCredentials?\n}\n\nmodel Calendar {\n id String @id @default(uuid())\n name String\n color String @default(\"#0082c9\")\n description String?\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n events Event[]\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n\nmodel Event {\n id String @id @default(uuid())\n title String\n description String?\n start DateTime\n end DateTime\n location String?\n isAllDay Boolean @default(false)\n calendar Calendar @relation(fields: [calendarId], references: [id], onDelete: Cascade)\n calendarId String\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([calendarId])\n @@index([userId])\n}\n\nmodel MailCredentials {\n id String @id @default(uuid())\n userId String\n email String\n password String\n host String\n port Int\n secure Boolean @default(true)\n\n // SMTP Settings\n smtp_host String?\n smtp_port Int?\n smtp_secure Boolean? @default(false)\n\n // Display Settings\n display_name String?\n color String? @default(\"#0082c9\")\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n\nmodel WebDAVCredentials {\n id String @id @default(uuid())\n userId String @unique\n username String\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n", - "inlineSchemaHash": "43645444f3e2fd680e219829659eae3fb2d992da1a99638d0d889fcf0366739a", + "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client-js\"\n binaryTargets = [\"native\", \"linux-arm64-openssl-3.0.x\"]\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(uuid())\n email String @unique\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n calendars Calendar[]\n events Event[]\n mailCredentials MailCredentials[]\n webdavCredentials WebDAVCredentials?\n announcements Announcement[]\n missions Mission[]\n missionUsers MissionUser[]\n uploadedAttachments Attachment[]\n}\n\nmodel Calendar {\n id String @id @default(uuid())\n name String\n color String @default(\"#0082c9\")\n description String?\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n events Event[]\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n\nmodel Event {\n id String @id @default(uuid())\n title String\n description String?\n start DateTime\n end DateTime\n location String?\n isAllDay Boolean @default(false)\n calendar Calendar @relation(fields: [calendarId], references: [id], onDelete: Cascade)\n calendarId String\n userId String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([calendarId])\n @@index([userId])\n}\n\nmodel MailCredentials {\n id String @id @default(uuid())\n userId String\n email String\n password String? // Make password optional\n host String\n port Int\n secure Boolean @default(true)\n\n // OAuth Settings\n use_oauth Boolean @default(false)\n refresh_token String?\n access_token String?\n token_expiry DateTime?\n\n // SMTP Settings\n smtp_host String?\n smtp_port Int?\n smtp_secure Boolean? @default(false)\n\n // Display Settings\n display_name String?\n color String? @default(\"#0082c9\")\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@unique([userId, email])\n @@index([userId])\n}\n\nmodel WebDAVCredentials {\n id String @id @default(uuid())\n userId String @unique\n username String\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n\nmodel Announcement {\n id String @id @default(uuid())\n title String\n content String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n author User @relation(fields: [authorId], references: [id], onDelete: Cascade)\n authorId String\n targetRoles String[]\n\n @@index([authorId])\n}\n\n// Mission models\nmodel Mission {\n id String @id @default(uuid())\n name String\n logo String? // Stores the path to the logo in Minio\n oddScope String[] // Categories / ODD scope\n niveau String // Project Type / Niveau\n intention String // Description / Intention\n missionType String // Project location type / Type de mission\n donneurDOrdre String // Volunteer Type / Donneur d'ordre\n projection String // Duration / Projection\n services String[] // Experience / Services\n participation String? // Friendly Address / Participation\n profils String[] // Level / Profils\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n creator User @relation(fields: [creatorId], references: [id], onDelete: Cascade)\n creatorId String\n attachments Attachment[]\n missionUsers MissionUser[]\n\n @@index([creatorId])\n}\n\nmodel Attachment {\n id String @id @default(uuid())\n filename String // Original filename\n filePath String // Path in Minio: user-${userId}/missions/${missionId}/attachments/${filename}\n fileType String // MIME type\n fileSize Int // Size in bytes\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n mission Mission @relation(fields: [missionId], references: [id], onDelete: Cascade)\n missionId String\n uploader User @relation(fields: [uploaderId], references: [id], onDelete: Cascade)\n uploaderId String\n\n @@index([missionId])\n @@index([uploaderId])\n}\n\nmodel MissionUser {\n id String @id @default(uuid())\n role String // 'gardien-temps', 'gardien-parole', 'gardien-memoire', 'volontaire'\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n mission Mission @relation(fields: [missionId], references: [id], onDelete: Cascade)\n missionId String\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n userId String\n\n @@unique([missionId, userId, role])\n @@index([missionId])\n @@index([userId])\n}\n", + "inlineSchemaHash": "88afc136568bbc75c9ec5b46750ab76fa3829d2be8ac021c44bc210bff0bee43", "copyEngine": true } @@ -244,7 +301,7 @@ if (!fs.existsSync(path.join(__dirname, 'schema.prisma'))) { config.isBundled = true } -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"calendars\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Calendar\",\"nativeType\":null,\"relationName\":\"CalendarToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"events\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mailCredentials\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MailCredentials\",\"nativeType\":null,\"relationName\":\"MailCredentialsToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"webdavCredentials\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WebDAVCredentials\",\"nativeType\":null,\"relationName\":\"UserToWebDAVCredentials\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Calendar\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"#0082c9\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"events\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"CalendarToEvent\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"CalendarToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Event\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"start\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"end\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"location\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isAllDay\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"calendar\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Calendar\",\"nativeType\":null,\"relationName\":\"CalendarToEvent\",\"relationFromFields\":[\"calendarId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"calendarId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"EventToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MailCredentials\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"host\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"port\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"secure\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_host\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_port\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_secure\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"display_name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"#0082c9\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"MailCredentialsToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"WebDAVCredentials\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"UserToWebDAVCredentials\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"calendars\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Calendar\",\"nativeType\":null,\"relationName\":\"CalendarToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"events\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"EventToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mailCredentials\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MailCredentials\",\"nativeType\":null,\"relationName\":\"MailCredentialsToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"webdavCredentials\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WebDAVCredentials\",\"nativeType\":null,\"relationName\":\"UserToWebDAVCredentials\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"announcements\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Announcement\",\"nativeType\":null,\"relationName\":\"AnnouncementToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missions\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Mission\",\"nativeType\":null,\"relationName\":\"MissionToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionUsers\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MissionUser\",\"nativeType\":null,\"relationName\":\"MissionUserToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uploadedAttachments\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Attachment\",\"nativeType\":null,\"relationName\":\"AttachmentToUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Calendar\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"#0082c9\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"events\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Event\",\"nativeType\":null,\"relationName\":\"CalendarToEvent\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"CalendarToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Event\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"start\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"end\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"location\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"isAllDay\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"calendar\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Calendar\",\"nativeType\":null,\"relationName\":\"CalendarToEvent\",\"relationFromFields\":[\"calendarId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"calendarId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"EventToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MailCredentials\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"host\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"port\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"secure\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":true,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"use_oauth\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"access_token\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"token_expiry\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_host\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_port\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"smtp_secure\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"nativeType\":null,\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"display_name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":\"#0082c9\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"MailCredentialsToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"userId\",\"email\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"userId\",\"email\"]}],\"isGenerated\":false},\"WebDAVCredentials\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"username\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"UserToWebDAVCredentials\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Announcement\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"title\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"content\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"author\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"AnnouncementToUser\",\"relationFromFields\":[\"authorId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"authorId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"targetRoles\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Mission\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"logo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"oddScope\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"niveau\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"intention\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"donneurDOrdre\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"projection\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"services\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"participation\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"profils\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"creator\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"MissionToUser\",\"relationFromFields\":[\"creatorId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"creatorId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"attachments\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Attachment\",\"nativeType\":null,\"relationName\":\"AttachmentToMission\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionUsers\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"MissionUser\",\"nativeType\":null,\"relationName\":\"MissionToMissionUser\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Attachment\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"filename\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"filePath\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileType\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fileSize\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"mission\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Mission\",\"nativeType\":null,\"relationName\":\"AttachmentToMission\",\"relationFromFields\":[\"missionId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uploader\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"AttachmentToUser\",\"relationFromFields\":[\"uploaderId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"uploaderId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"MissionUser\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"role\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"mission\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Mission\",\"nativeType\":null,\"relationName\":\"MissionToMissionUser\",\"relationFromFields\":[\"missionId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"missionId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"MissionUserToUser\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[[\"missionId\",\"userId\",\"role\"]],\"uniqueIndexes\":[{\"name\":null,\"fields\":[\"missionId\",\"userId\",\"role\"]}],\"isGenerated\":false}},\"enums\":{},\"types\":{}}") defineDmmfProperty(exports.Prisma, config.runtimeDataModel) config.engineWasm = undefined config.compilerWasm = undefined diff --git a/node_modules/.prisma/client/package.json b/node_modules/.prisma/client/package.json index f7ab4e67..fad2f47e 100644 --- a/node_modules/.prisma/client/package.json +++ b/node_modules/.prisma/client/package.json @@ -1,5 +1,5 @@ { - "name": "prisma-client-b40f3f84d2de0618d89c499eb0cd716edd77eed705934b6086e165c44e903c03", + "name": "prisma-client-d795f1d6d1080356e47b7b9bc2c7e97913938c4d241f1ee6aa4d3f8bbd27445b", "main": "index.js", "types": "index.d.ts", "browser": "index-browser.js", diff --git a/node_modules/.prisma/client/schema.prisma b/node_modules/.prisma/client/schema.prisma index 906b37b8..d938faea 100644 --- a/node_modules/.prisma/client/schema.prisma +++ b/node_modules/.prisma/client/schema.prisma @@ -12,15 +12,19 @@ datasource db { } model User { - id String @id @default(uuid()) - email String @unique - password String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - calendars Calendar[] - events Event[] - mailCredentials MailCredentials[] - webdavCredentials WebDAVCredentials? + id String @id @default(uuid()) + email String @unique + password String + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + calendars Calendar[] + events Event[] + mailCredentials MailCredentials[] + webdavCredentials WebDAVCredentials? + announcements Announcement[] + missions Mission[] + missionUsers MissionUser[] + uploadedAttachments Attachment[] } model Calendar { @@ -60,11 +64,17 @@ model MailCredentials { id String @id @default(uuid()) userId String email String - password String + password String? // Make password optional host String port Int secure Boolean @default(true) + // OAuth Settings + use_oauth Boolean @default(false) + refresh_token String? + access_token String? + token_expiry DateTime? + // SMTP Settings smtp_host String? smtp_port Int? @@ -78,6 +88,7 @@ model MailCredentials { updatedAt DateTime @updatedAt user User @relation(fields: [userId], references: [id], onDelete: Cascade) + @@unique([userId, email]) @@index([userId]) } @@ -92,3 +103,72 @@ model WebDAVCredentials { @@index([userId]) } + +model Announcement { + id String @id @default(uuid()) + title String + content String + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + author User @relation(fields: [authorId], references: [id], onDelete: Cascade) + authorId String + targetRoles String[] + + @@index([authorId]) +} + +// Mission models +model Mission { + id String @id @default(uuid()) + name String + logo String? // Stores the path to the logo in Minio + oddScope String[] // Categories / ODD scope + niveau String // Project Type / Niveau + intention String // Description / Intention + missionType String // Project location type / Type de mission + donneurDOrdre String // Volunteer Type / Donneur d'ordre + projection String // Duration / Projection + services String[] // Experience / Services + participation String? // Friendly Address / Participation + profils String[] // Level / Profils + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + creator User @relation(fields: [creatorId], references: [id], onDelete: Cascade) + creatorId String + attachments Attachment[] + missionUsers MissionUser[] + + @@index([creatorId]) +} + +model Attachment { + id String @id @default(uuid()) + filename String // Original filename + filePath String // Path in Minio: user-${userId}/missions/${missionId}/attachments/${filename} + fileType String // MIME type + fileSize Int // Size in bytes + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + mission Mission @relation(fields: [missionId], references: [id], onDelete: Cascade) + missionId String + uploader User @relation(fields: [uploaderId], references: [id], onDelete: Cascade) + uploaderId String + + @@index([missionId]) + @@index([uploaderId]) +} + +model MissionUser { + id String @id @default(uuid()) + role String // 'gardien-temps', 'gardien-parole', 'gardien-memoire', 'volontaire' + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + mission Mission @relation(fields: [missionId], references: [id], onDelete: Cascade) + missionId String + user User @relation(fields: [userId], references: [id], onDelete: Cascade) + userId String + + @@unique([missionId, userId, role]) + @@index([missionId]) + @@index([userId]) +} diff --git a/node_modules/.prisma/client/wasm.js b/node_modules/.prisma/client/wasm.js index c0d9521c..4a3b5f8f 100644 --- a/node_modules/.prisma/client/wasm.js +++ b/node_modules/.prisma/client/wasm.js @@ -157,6 +157,10 @@ exports.Prisma.MailCredentialsScalarFieldEnum = { host: 'host', port: 'port', secure: 'secure', + use_oauth: 'use_oauth', + refresh_token: 'refresh_token', + access_token: 'access_token', + token_expiry: 'token_expiry', smtp_host: 'smtp_host', smtp_port: 'smtp_port', smtp_secure: 'smtp_secure', @@ -175,6 +179,55 @@ exports.Prisma.WebDAVCredentialsScalarFieldEnum = { updatedAt: 'updatedAt' }; +exports.Prisma.AnnouncementScalarFieldEnum = { + id: 'id', + title: 'title', + content: 'content', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + authorId: 'authorId', + targetRoles: 'targetRoles' +}; + +exports.Prisma.MissionScalarFieldEnum = { + id: 'id', + name: 'name', + logo: 'logo', + oddScope: 'oddScope', + niveau: 'niveau', + intention: 'intention', + missionType: 'missionType', + donneurDOrdre: 'donneurDOrdre', + projection: 'projection', + services: 'services', + participation: 'participation', + profils: 'profils', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + creatorId: 'creatorId' +}; + +exports.Prisma.AttachmentScalarFieldEnum = { + id: 'id', + filename: 'filename', + filePath: 'filePath', + fileType: 'fileType', + fileSize: 'fileSize', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + uploaderId: 'uploaderId' +}; + +exports.Prisma.MissionUserScalarFieldEnum = { + id: 'id', + role: 'role', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + missionId: 'missionId', + userId: 'userId' +}; + exports.Prisma.SortOrder = { asc: 'asc', desc: 'desc' @@ -196,7 +249,11 @@ exports.Prisma.ModelName = { Calendar: 'Calendar', Event: 'Event', MailCredentials: 'MailCredentials', - WebDAVCredentials: 'WebDAVCredentials' + WebDAVCredentials: 'WebDAVCredentials', + Announcement: 'Announcement', + Mission: 'Mission', + Attachment: 'Attachment', + MissionUser: 'MissionUser' }; /**