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


--
-- 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=32346;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$tulaXWmvHdil5TOVYGW7/tADjMKA1AB2XMDDzQQ1YwYh9ly83GO5h','user','ak_eec21eb72734abe9','2023-12-23 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$/51udKuFXwvIjR0v87LLvg/qxHRAuezRwzLc.YdXF8nOdmymYIuaO','user','ak_541956aef58e8ef9','2023-12-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$SE3P228FbUeCZRWeYq/6uD30TAkcS0Qxg3oZ2/0npbwFuYB74vXIS','user','ak_b20517d2777cbb0a','2023-08-18 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$gx7AVdnyN7u1xI4X1oXk.YC6c75Xll4TCXEbudYTvJB3cM77lD3yx','user','ak_0e9103937ce3a0af','2023-05-14 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$jAOfIEEosdFpwXFP3DANZ19B.VyX.935Qq2jI6sfCwDUvT4/a6nTU','user','ak_a377a5260a686256','2023-08-04 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$eToFKKRO04COcT7UtxpJBubdpVlX939kLvhwTBLblhKQGj5bNZpJP','admin','ak_64f17cd02e1f16bd','2023-10-20 10:12:00',NULL);
INSERT INTO `users` VALUES (7,'admin@company.com','$2b$12$JIt0P9lGbjlEL.qdw/n/Z33w6nVMSoXw1nQiqhiYAFfRWvarMDGdf','admin','ak_24f8d0ee905d1e6a','2023-11-08 10:12: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=19980;

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


--
-- 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=44785;

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


