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


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$Q.tBkMt6xTwfRoy5bhrwbRVJa10eJykUt1FwukHBXGAMRSocYG25Z','user','ak_06478dec6c4b05c1','2023-06-04 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$vOSTWGiK6p.v5BFpqcHgPdQ6tMUGr526EJ3tjGoL4fEinpZKoJyGC','user','ak_4c2bd8f162ad580a','2023-04-19 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$kdcIQVYPgE6z3GbBXtR37FCu4kXncRopN/7clAUTYtVfRxsMwdlnv','user','ak_17c4e38ce2711a08','2023-02-15 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$pOuj9fsYS9kZHXbHyXaByxL4axR80dnseQS69DrUChKfv8Jw9FADr','user','ak_af55a700fc018b5a','2023-10-25 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$kM1fAnZYbCQNNyiAFeTNXurVivT50hBeViL8aYIGQn3vFOvGeGxNI','admin','ak_37a687b4279a0eb6','2023-11-18 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$uV9DdXdGgSyUkEtlqeo/cJKrJTIXZwQSVFn4MmxIsSJkHTqQvBqeK','user','ak_f223d0cd2ed6f68f','2023-03-20 10:04:00',NULL);

