Skip to content

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

ChampNotes
titleObligatoire
descriptionTexte libre
due_dateDate d'échéance, optionnelle
priorityVoir constante ci-dessous
statusVoir constante ci-dessous
opportunity_idPermet de rattacher une tâche à une opportunité

Constantes liées

  • TASK_PRIORITY : low, normal, high
  • TASK_STATUS : to_do, in_progress, done

Cycle de vie

Voir aussi