build fix
This commit is contained in:
parent
c334e02da9
commit
9ebfd23321
69
node_modules/.prisma/client/edge.js
generated
vendored
69
node_modules/.prisma/client/edge.js
generated
vendored
File diff suppressed because one or more lines are too long
59
node_modules/.prisma/client/index-browser.js
generated
vendored
59
node_modules/.prisma/client/index-browser.js
generated
vendored
@ -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'
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
7844
node_modules/.prisma/client/index.d.ts
generated
vendored
7844
node_modules/.prisma/client/index.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
69
node_modules/.prisma/client/index.js
generated
vendored
69
node_modules/.prisma/client/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/.prisma/client/package.json
generated
vendored
2
node_modules/.prisma/client/package.json
generated
vendored
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "prisma-client-b40f3f84d2de0618d89c499eb0cd716edd77eed705934b6086e165c44e903c03",
|
||||
"name": "prisma-client-d795f1d6d1080356e47b7b9bc2c7e97913938c4d241f1ee6aa4d3f8bbd27445b",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"browser": "index-browser.js",
|
||||
|
||||
100
node_modules/.prisma/client/schema.prisma
generated
vendored
100
node_modules/.prisma/client/schema.prisma
generated
vendored
@ -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])
|
||||
}
|
||||
|
||||
59
node_modules/.prisma/client/wasm.js
generated
vendored
59
node_modules/.prisma/client/wasm.js
generated
vendored
@ -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'
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user