# Dictionnaire — module `taches`

Généré le **2026-08-05 10:13:35** — base `erp_immo_migrate_1113` — 5.09 s

> Pas de données personnelles. Distributions uniquement sur colonnes enum/statut techniques.

## `etiquettes`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `type` | varchar(20) | non | n/a (table vide) | non | non | aucun | — |
| `programme_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |
| `user_id` | bigint | oui | n/a (table vide) · récent | non | non | aucun | — |
| `projet_id` | bigint | oui | n/a (table vide) · récent | non | non | aucun | — |
| `libelle` | varchar(200) | oui | n/a (table vide) | non | non | aucun | — |
| `couleur` | varchar(16) | oui | n/a (table vide) · récent | non | non | aucun | — |
| `actif` | tinyint | non | n/a (table vide) | non | non | aucun | — |

## `projets`

- Volume alive : **0** · trashed=0 · SoftDeletes : oui
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `uuid` | char(36) | non | n/a (table vide) | non | non | aucun | — |
| `nom` | varchar(255) | non | n/a (table vide) · récent | non | non | aucun | — |
| `description` | text(65535) | oui | n/a (table vide) · récent | non | non | aucun | — |
| `createur_id` | bigint | oui | n/a (table vide) · récent | non | non | aucun | — |

## `projet_personnes`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `projet_id` | bigint | non | n/a (table vide) · récent | non | non | aucun | — |
| `user_id` | bigint | non | n/a (table vide) · récent | non | non | aucun | — |
| `assignee_at` | timestamp | oui | n/a (table vide) · récent | non | non | aucun | — |

## `taches_digest_envois`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `user_id` | bigint | non | n/a (table vide) | non | non | aucun | — |
| `date_envoi` | date | non | n/a (table vide) | non | non | aucun | — |

## `taches_digest_runs`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `date_run` | date | non | n/a (table vide) | non | non | aucun | — |
| `started_at` | datetime | non | n/a (table vide) | non | non | aucun | — |
| `finished_at` | datetime | oui | n/a (table vide) | non | non | aucun | — |
| `nb_envoyes` | int | non | n/a (table vide) | non | non | aucun | — |

## `taches_suivi`

- Volume alive : **0** · trashed=0 · SoftDeletes : oui
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `uuid` | char(36) | non | n/a (table vide) | non | non | aucun | — |
| `objet` | varchar(300) | non | n/a (table vide) | non | non | aucun | — |
| `description` | text(65535) | oui | n/a (table vide) | non | non | aucun | — |
| `date_echeance` | date | oui | n/a (table vide) | non | non | aucun | — |
| `url` | varchar(2048) | oui | n/a (table vide) | non | non | aucun | — |
| `importance` | varchar(20) | non | n/a (table vide) | non | non | aucun | — |
| `statut` | varchar(20) | non | n/a (table vide) | non | non | aucun | — |
| `validation_mode` | varchar(30) | non | n/a (table vide) | non | non | aucun | — |
| `createur_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |
| `projet_id` | bigint | oui | n/a (table vide) · récent | non | non | aucun | — |
| `attachable_type` | varchar(255) | oui | n/a · #1209 morph | non | non | aucun | — |
| `attachable_id` | bigint | oui | n/a · #1209 morph | non | non | aucun | — |
| `position` | int | non | n/a (table vide) · récent | non | non | aucun | — |
| `termine_at` | datetime | oui | n/a (table vide) | non | non | aucun | — |
| `termine_par_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |

> **#1209** — `attachable_*` nullable, index `taches_suivi_attachable_idx`, **pas de FK**.
> Premier porteur : `App\Models\DossierFoncier`. Backfill = zéro.
> Programme reste via étiquette `TYPE_PROGRAMME` (pas de morph programme).
> Visibilité si attachable = dossier : ACL dossier seule (D62), pas d’exemption créateur/assigné.

## `tache_suivi_checklist_items`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `tache_suivi_id` | bigint | non | n/a (table vide) · récent | non | non | aucun | — |
| `libelle` | varchar(500) | non | n/a (table vide) · récent | non | non | aucun | — |
| `fait` | tinyint | non | n/a (table vide) · récent | non | non | aucun | — |
| `position` | int | non | n/a (table vide) · récent | non | non | aucun | — |
| `fait_par_user_id` | bigint | oui | n/a (table vide) · récent | non | non | aucun | — |
| `fait_at` | timestamp | oui | n/a (table vide) · récent | non | non | aucun | — |

## `tache_suivi_commentaires`

- Volume alive : **0** · trashed=0 · SoftDeletes : oui
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `tache_suivi_id` | bigint | non | n/a (table vide) | non | non | aucun | — |
| `user_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |
| `body` | text(65535) | oui | n/a (table vide) | non | non | aucun | — |
| `est_systeme` | tinyint | non | n/a (table vide) | non | non | aucun | — |
| `metadata` | longtext(4294967295) | oui | n/a (table vide) | non | non | aucun | — |

## `tache_suivi_commentaire_mentions`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `tache_suivi_commentaire_id` | bigint | non | n/a (table vide) | non | non | aucun | — |
| `user_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |
| `azure_id` | varchar(255) | oui | n/a (table vide) | non | non | aucun | — |
| `display_name` | varchar(255) | oui | n/a (table vide) | non | non | aucun | — |

## `tache_suivi_documents`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `tache_suivi_id` | bigint | non | n/a (table vide) | non | non | aucun | — |
| `nom_fichier` | varchar(255) | non | n/a (table vide) | non | non | aucun | — |
| `chemin_stockage` | varchar(255) | non | n/a (table vide) | non | non | aucun | — |
| `disk` | varchar(32) | non | n/a (table vide) | non | non | aucun | — |
| `taille` | bigint | oui | n/a (table vide) | non | non | aucun | — |
| `mime` | varchar(255) | oui | n/a (table vide) | non | non | aucun | — |
| `created_by_user_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |

## `tache_suivi_etiquette`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `tache_suivi_id` | bigint | non | n/a (table vide) | non | non | aucun | — |
| `etiquette_id` | bigint | non | n/a (table vide) | non | non | aucun | — |

## `tache_suivi_personnes`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `tache_suivi_id` | bigint | non | n/a (table vide) | non | non | aucun | — |
| `user_id` | bigint | non | n/a (table vide) | non | non | aucun | — |
| `assignee_at` | timestamp | oui | n/a (table vide) | non | non | aucun | — |

## `tasks`

- Volume alive : **0** · SoftDeletes : non
- Alertes :
  - table à 0 ligne (alive)

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `uuid` | char(36) | non | n/a (table vide) | non | non | aucun | — |
| `task_type_id` | bigint | non | n/a (table vide) | non | non | aucun | — |
| `titre` | varchar(300) | non | n/a (table vide) | non | non | aucun | — |
| `description` | text(65535) | oui | n/a (table vide) | non | non | aucun | — |
| `priorite` | varchar(20) | non | n/a (table vide) | non | non | aucun | — |
| `statut` | varchar(20) | non | n/a (table vide) | non | non | aucun | — |
| `assignee_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |
| `assignee_email` | varchar(255) | oui | n/a (table vide) | non | non | aucun | — |
| `assignee_azure_id` | varchar(255) | oui | n/a (table vide) | non | non | aucun | — |
| `assignee_groupe_m365` | varchar(120) | oui | n/a (table vide) | non | non | aucun | — |
| `taskable_type` | varchar(255) | oui | n/a (table vide) | non | non | aucun | — |
| `taskable_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |
| `erp_context` | longtext(4294967295) | oui | n/a (table vide) | non | non | aucun | — |
| `echeance_at` | datetime | oui | n/a (table vide) | non | non | aucun | — |
| `echeance_source` | varchar(20) | oui | n/a (table vide) | non | non | aucun | — |
| `auto_closed` | tinyint | non | n/a (table vide) | non | non | aucun | — |
| `closed_reason` | varchar(40) | oui | n/a (table vide) | non | non | aucun | — |
| `closed_at` | datetime | oui | n/a (table vide) | non | non | aucun | — |
| `closed_by_user_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |
| `created_by_user_id` | bigint | oui | n/a (table vide) | non | non | aucun | — |
| `idempotency_key` | varchar(255) | oui | n/a (table vide) | non | non | aucun | — |

## `task_types`

- Volume alive : **5** · SoftDeletes : non
- Colonnes mortes (0 %, hors UI, hors lecteur, hors récent) : `config`

| Colonne | Type | Null | Rempl. | UI | WL | Lecteurs | Dist. |
|---------|------|------|--------|----|----|----------|-------|
| `code` | varchar(80) | non | 5/5 (100%) | non | non | aucun | — |
| `libelle` | varchar(200) | non | 5/5 (100%) | non | non | aucun | — |
| `delai_heures` | int | oui | 4/5 (80%) | non | non | aucun | — |
| `taskable_type` | varchar(255) | oui | 5/5 (100%) | non | non | aucun | App\Models\WorkflowValidation=2, App\Models\BugReport=1, App\Models\Facture=1, App\Models\ConditionSuspensive=1 |
| `auto_create` | tinyint | non | 5/5 (100%) | non | non | aucun | — |
| `auto_close_on_erp_action` | tinyint | non | 4/5 (80%) | non | non | aucun | — |
| `actif` | tinyint | non | 5/5 (100%) | non | non | aucun | — |
| `config` | longtext(4294967295) | oui | 0/5 (0%) | non | non | aucun | — |

## FK du module

- `assistant_conversations.tache_suivi_id` → `taches_suivi.id` ON DELETE SET NULL (vol. enfant=0)
- `assistant_conversation_taches.tache_suivi_id` → `taches_suivi.id` ON DELETE CASCADE (vol. enfant=0)
- `assistant_propositions.tache_suivi_id` → `taches_suivi.id` ON DELETE CASCADE (vol. enfant=0)
- `etiquettes.programme_id` → `programmes.id` ON DELETE SET NULL (vol. enfant=0)
- `etiquettes.projet_id` → `projets.id` ON DELETE CASCADE (vol. enfant=0)
- `etiquettes.user_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `projets.createur_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `projet_personnes.projet_id` → `projets.id` ON DELETE CASCADE (vol. enfant=0)
- `projet_personnes.user_id` → `users.id` ON DELETE CASCADE (vol. enfant=0)
- `taches_digest_envois.user_id` → `users.id` ON DELETE CASCADE (vol. enfant=0)
- `taches_suivi.createur_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `taches_suivi.projet_id` → `projets.id` ON DELETE RESTRICT (vol. enfant=0)
- `taches_suivi.termine_par_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `tache_suivi_checklist_items.fait_par_user_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `tache_suivi_checklist_items.tache_suivi_id` → `taches_suivi.id` ON DELETE CASCADE (vol. enfant=0)
- `tache_suivi_commentaires.tache_suivi_id` → `taches_suivi.id` ON DELETE CASCADE (vol. enfant=0)
- `tache_suivi_commentaires.user_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `tache_suivi_commentaire_mentions.tache_suivi_commentaire_id` → `tache_suivi_commentaires.id` ON DELETE CASCADE (vol. enfant=0)
- `tache_suivi_commentaire_mentions.user_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `tache_suivi_documents.created_by_user_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `tache_suivi_documents.tache_suivi_id` → `taches_suivi.id` ON DELETE CASCADE (vol. enfant=0)
- `tache_suivi_etiquette.etiquette_id` → `etiquettes.id` ON DELETE CASCADE (vol. enfant=0)
- `tache_suivi_etiquette.tache_suivi_id` → `taches_suivi.id` ON DELETE CASCADE (vol. enfant=0)
- `tache_suivi_personnes.tache_suivi_id` → `taches_suivi.id` ON DELETE CASCADE (vol. enfant=0)
- `tache_suivi_personnes.user_id` → `users.id` ON DELETE CASCADE (vol. enfant=0)
- `tasks.assignee_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `tasks.closed_by_user_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `tasks.created_by_user_id` → `users.id` ON DELETE SET NULL (vol. enfant=0)
- `tasks.task_type_id` → `task_types.id` ON DELETE RESTRICT (vol. enfant=0)

