From 241b0008e82f08ad1f9cc15c82301a726bd25e61 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 30 Oct 2024 18:39:49 -0400 Subject: [PATCH] Updated DB Structure --- db.sql | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/db.sql b/db.sql index fdd57389..83a0f94d 100644 --- a/db.sql +++ b/db.sql @@ -680,14 +680,17 @@ CREATE TABLE `files` ( `file_id` int(11) NOT NULL AUTO_INCREMENT, `file_reference_name` varchar(200) DEFAULT NULL, `file_name` varchar(200) NOT NULL, - `file_description` text DEFAULT NULL, - `file_ext` varchar(200) DEFAULT NULL, + `file_description` varchar(250) DEFAULT NULL, + `file_ext` varchar(10) DEFAULT NULL, + `file_size` bigint(20) unsigned NOT NULL DEFAULT 0, `file_hash` varchar(200) DEFAULT NULL, + `file_mime_type` varchar(100) DEFAULT NULL, `file_important` tinyint(1) NOT NULL DEFAULT 0, `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_created_by` int(11) NOT NULL DEFAULT 0, `file_folder_id` int(11) NOT NULL DEFAULT 0, `file_asset_id` int(11) NOT NULL DEFAULT 0, `file_client_id` int(11) NOT NULL DEFAULT 0, @@ -2146,4 +2149,4 @@ CREATE TABLE `vendors` ( /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2024-10-29 18:32:49 +-- Dump completed on 2024-10-30 18:39:35