-- Host: db-master-1.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=33965;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$UCzgO.e50P1kvlt0CPx.CgHwH6hOEkmSpw.yfaDo9CP0IFbf8kQWs','admin','ak_704f698b86aceed0','2023-10-10 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$1SSapnlK1i76Evb7PAV27hD4BaKU35SmJSYJqG8G5j49qMnhWwMyl','admin','ak_024b0db62799404e','2023-03-17 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$yC/AMajNlKltuA6sq8MltWNf3f1kjc0bSB28.wzk5sNNvBPQ1ABDM','user','ak_41cac2269b867d24','2023-01-07 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$Pj8Sm2.TR1OrA9oaoei36If1TCLaEIKLvGgueaoH6/6u28YspoSqu','user','ak_acdd18258ac53381','2023-06-27 10:09:00',NULL);

