DB Dump, store file hash in the db

This commit is contained in:
johnnyq
2023-08-23 16:27:59 -04:00
parent a95b32a57e
commit 811f253470
4 changed files with 18 additions and 5 deletions

4
db.sql
View File

@@ -561,10 +561,12 @@ CREATE TABLE `files` (
`file_reference_name` varchar(200) DEFAULT NULL,
`file_name` varchar(200) NOT NULL,
`file_ext` varchar(200) DEFAULT NULL,
`file_hash` varchar(200) DEFAULT NULL,
`file_created_at` datetime NOT NULL DEFAULT current_timestamp(),
`file_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
`file_archived_at` datetime DEFAULT NULL,
`file_accessed_at` datetime DEFAULT NULL,
`file_folder_id` int(11) NOT NULL DEFAULT 0,
`file_client_id` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`file_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
@@ -1691,4 +1693,4 @@ CREATE TABLE `vendors` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-08-22 18:18:38
-- Dump completed on 2023-08-23 16:27:20