mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Enhancement: DB Structure Update: Seperate Logs into 3 seperate log tables error_logs, auth_logs, audit_logs. This will provide huge performance benefits and organization
This commit is contained in:
37
db.sql
37
db.sql
@@ -201,6 +201,25 @@ CREATE TABLE `assets` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `auth_logs`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `auth_logs`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `auth_logs` (
|
||||
`auth_log_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`auth_log_status` tinyint(1) NOT NULL,
|
||||
`auth_log_details` varchar(200) DEFAULT NULL,
|
||||
`auth_log_ip` varchar(200) DEFAULT NULL,
|
||||
`auth_log_user_agent` varchar(250) DEFAULT NULL,
|
||||
`auth_log_user_id` int(11) NOT NULL DEFAULT 0,
|
||||
`auth_log_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`auth_log_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `budget`
|
||||
--
|
||||
@@ -656,6 +675,22 @@ CREATE TABLE `email_queue` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `error_logs`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `error_logs`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `error_logs` (
|
||||
`error_log_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`error_log_type` varchar(200) NOT NULL,
|
||||
`error_log_details` varchar(1000) DEFAULT NULL,
|
||||
`error_log_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`error_log_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `event_attendees`
|
||||
--
|
||||
@@ -2227,4 +2262,4 @@ CREATE TABLE `vendors` (
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2024-11-23 15:34:58
|
||||
-- Dump completed on 2024-11-24 15:03:10
|
||||
|
||||
Reference in New Issue
Block a user