Skip to content
Snippets Groups Projects
Commit 33a2285f authored by Dean's avatar Dean
Browse files

add deleted_at and deletion_reason to objects.sql

parent e552b8ea
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,8 @@ CREATE TABLE IF NOT EXISTS objects (
content_length INT DEFAULT NULL, -- Content-Length of file
associated_user VARCHAR(36) DEFAULT NULL, -- ID of user who uploaded file
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- File creation timestamp
deleted_at TIMESTAMP DEFAULT NULL, -- Deletion timestamp
delete_reason VARCHAR(256) DEFAULT NULL, -- Deletion reason
md5_hash VARCHAR(32) DEFAULT NULL -- MD5 hash of file contents (or destination URL)
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment