-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c13cc4
commit a263f8f
Showing
1 changed file
with
7 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |