Apparence
Task
Tâche à faire. Peut être rattachée à une Opportunity.
- Path Firestore :
users/{userId}/tasks/{taskId} - Source TS :
klapy-crm/src/types/index.ts
Interface
ts
interface Task {
id: string;
title: string;
description?: string;
due_date?: Timestamp;
priority: TaskPriority;
status: TaskStatus;
opportunity_id?: string;
created_at: Timestamp;
updated_at: Timestamp;
}Champs
| Champ | Notes |
|---|---|
title | Obligatoire |
description | Texte libre |
due_date | Date d'échéance, optionnelle |
priority | Voir constante ci-dessous |
status | Voir constante ci-dessous |
opportunity_id | Permet de rattacher une tâche à une opportunité |
Constantes liées
TASK_PRIORITY:low,normal,highTASK_STATUS:to_do,in_progress,done