From a263f8f2ec01172abf95a4553101f91b69f438d8 Mon Sep 17 00:00:00 2001 From: Marvin Gajek Date: Mon, 18 Nov 2024 10:47:10 +0100 Subject: [PATCH] keep ERD simple --- docs/diagrams/erd.mmd | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/docs/diagrams/erd.mmd b/docs/diagrams/erd.mmd index 68bfc3f..d5cdd96 100644 --- a/docs/diagrams/erd.mmd +++ b/docs/diagrams/erd.mmd @@ -1,35 +1,24 @@ erDiagram CRYPTOGRAPHIC_KEY { string key_id PK - string key_value string key_type datetime created_at datetime expires_at string user_id FK } - METADATA { - string metadata_id PK - string blob_id FK - string key_id FK - datetime created_at - datetime updated_at - string encryption_algorithm - string content_type - int size - string user_id FK - } - BLOB { string blob_id PK string blob_storage_path datetime upload_time string user_id FK - string file_name - int file_size - string file_type + string blob_name + int blob_size + string blob_type + string encryption_algorithm + string hash_algorithm + bool is_encrypted + bool is_signed } - CRYPTOGRAPHIC_KEY ||--o| METADATA : "used in" CRYPTOGRAPHIC_KEY ||--o| BLOB : "associated with" - BLOB ||--o| METADATA : "has metadata"