Skip to content

Commit

Permalink
keep ERD simple
Browse files Browse the repository at this point in the history
  • Loading branch information
MGTheTrain committed Nov 18, 2024
1 parent 9c13cc4 commit a263f8f
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions docs/diagrams/erd.mmd
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a263f8f

Please sign in to comment.