Add candidateTeam field to evaluations; update related components and API endpoints for consistency

This commit is contained in:
Julien Froidefond
2026-02-20 09:22:12 +01:00
parent f0c5d768db
commit 9fcceb2649
11 changed files with 79 additions and 38 deletions

Binary file not shown.

View File

@@ -46,6 +46,7 @@ model Evaluation {
id String @id @default(cuid())
candidateName String
candidateRole String
candidateTeam String? // équipe du candidat
evaluatorName String
evaluationDate DateTime
templateId String

View File

@@ -175,9 +175,9 @@ async function main() {
});
const candidates = [
{ name: "Alice Chen", role: "Senior ML Engineer", evaluator: "Jean Dupont" },
{ name: "Bob Martin", role: "Data Scientist", evaluator: "Marie Curie" },
{ name: "Carol White", role: "AI Product Manager", evaluator: "Jean Dupont" },
{ name: "Alice Chen", role: "Senior ML Engineer", team: "Cars Front", evaluator: "Jean Dupont" },
{ name: "Bob Martin", role: "Data Scientist", team: "Cars Front", evaluator: "Marie Curie" },
{ name: "Carol White", role: "AI Product Manager", team: "Cars Data", evaluator: "Jean Dupont" },
];
for (let i = 0; i < candidates.length; i++) {
@@ -186,6 +186,7 @@ async function main() {
data: {
candidateName: c.name,
candidateRole: c.role,
candidateTeam: c.team,
evaluatorName: c.evaluator,
evaluationDate: new Date(2025, 1, 15 + i),
templateId: template.id,