add downloadable content in vault

This commit is contained in:
LathanDevers
2026-08-01 22:24:49 +02:00
parent 6b93d21d19
commit ff6602dff3
9 changed files with 148 additions and 81 deletions
+9 -5
View File
@@ -1,7 +1,11 @@
export interface Document {
id: string;
title: string;
category: string;
file: File;
created: string;
id: string;
collectionId: string; // <-- OBLIGATOIRE pour pb.files.getUrl()
collectionName: string; // (ex: 'aegis_documents_vault')
created: string;
updated: string;
title: string;
file: string; // Le nom du fichier généré par PocketBase (ex: 'rapport_7b3a.pdf')
category: string;
company?: string; // L'ID du client (Relation)
}