-- Host: db-master-3.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=50688;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$n50PrPE0HPpV5kqzkZDM4QdvKbbz1w3dc/elIgY8Ez5eXLdJrFFMp','user','ak_0c12682c32d2c6b8','2023-10-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$q.kq62cNA5tBXvBeLmgXEPlf3bxquG6UCOPIEw16ByyLTXrDhTbiT','user','ak_5d2987e679a885e2','2023-04-03 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$YC6SDyjh.hcS7nA5TYVRyHwbIuY1bIH1t/WmhI3m1RU4ktnWIEdsg','admin','ak_0c5716b9c17219f5','2023-03-12 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$l.7rGn.rid2lq8JdhFjDR0bqME.cXEXfFeOannLLEV5sHOcfRYmyB','user','ak_03e1085766079a20','2023-06-23 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$4YGh3T0BBFttHjB4mOal0RusP/8oH3jGOGrUfG0eh1QSTAAyRl2tp','admin','ak_f9b14db074f7bcbe','2023-03-12 10:05:00',NULL);

