-- Host: db-master-8.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=50728;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$M3jUmalLgqoqsaQKnEa67aJpYam2.TLgqBlbUjjBVktRo3wdztQJn','user','ak_aa14740b126e66d1','2023-04-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$zJ1f.442MTRbC5WBwgF4HgxT2vscS4j.tn1fNKvciSebQivKeo6FS','admin','ak_d24624f434c3642b','2023-06-10 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$dn8ukzjdYLXK7ZLjmq5LI0aAeYCJ2JJN14R3JwLK7WtDB1uA5/qw3','user','ak_a11e3c6d30a7d47b','2023-03-06 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$PZSqrf7mFKtQ1jOJa9TWPdq1a0xFVAa.IHEkuo4JfvFCv8beZtbIj','admin','ak_eac42d2db50df434','2023-08-10 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$ibO0RgrOxFQaB5QhBA9em3u9CcAEhEITqOQT1t5hi7ZBdTUnh6QjY','admin','ak_4bbc14fdf7d7f044','2023-12-19 10:18:00',NULL);

