-- Host: db-master-4.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$q1RSWdLlQxJhmLLgrjS.ipR1NChwUGyQFFYUk3rx3ZUxzYUHkGI2n','admin','ak_88dc0b7e26f5c39b','2023-10-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$u6RqEd36psH0ssEOhspzWNi8Oj0G7VkXN3dFEbCKZBDnZGN8efmzY','user','ak_46d33a84ac79d854','2023-05-14 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$jRm5lPYMhf7ctZ3iqBv3N9zY1T2GN1vckY08dlhY7x71ojQF6lNWM','user','ak_c23ee6691788b988','2023-02-21 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$2JFytIEO/YxUxICwA5Tlq0qQTljImJ4NtTq8vmRwWfW1pvLwa7Ncx','admin','ak_c78e508466ae1c21','2023-05-19 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$7kggMPq3NJgHUQxofV/wOvei3tVUl11v4hkVzqt9eN.SETO88wH.4','admin','ak_5fd7b1d441db0eae','2023-09-15 10:08: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=40743;

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

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


