-- Host: db-master-6.internal    Database: main_app


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=44385;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=26517;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$1Ck0VGPhkXbOdfP.CcNW3gZCGAdaMZpyACrwUPDhBP1OkprRhejAR','user','ak_1505272a33b9e3c9','2023-04-09 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$WvDWBaxbePzvw11VvIyNY.mqBXtxz4Q0U/IZ4Df9BIUPppAZfJ9T4','user','ak_1c30e1285cf3fa27','2023-09-12 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$kPxPR1WTPLutZikSznpnMecPma4pnmfosX7HVnbEcCopcdrhgGGhV','user','ak_229840c63b9883ff','2023-06-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$XtU0CH.bIeAD7QXfIXV4m78LR9cMbtsIBmIUhVNcZFOwffL8koU.K','user','ak_de31e931274aa8f7','2023-04-21 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$D0RFSLvk97IPjWPEOBjdJBpkoMEdWxXMnfttcCxcJ9/YALk0xw9ov','user','ak_0ed8aace464e4050','2023-10-17 10:04:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=43313;

--
-- Dumping data for table `audit_log`
--


