-- Host: db-master-4.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=47768;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$wm94MvSNlLPQpA5q.1k/D/YPWjkhGIZe8sQ2S/Qh8kZGjN4CPOero','user','ak_f7d77a714d60f4ad','2023-04-15 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$/j/7p8joDhx8TuhYmPlZH3c/X5vDru6kK8N2.vZfDFnT0M1D.JOkS','user','ak_e2d665de002be1e0','2023-11-15 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$zcBihfMPmGDDLcJhuKJ6itLne6pmw5LX3RyUZ27yXvB3Pna7zYztF','admin','ak_3d27893e360be246','2023-01-18 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$r8QjdcxF8wqtXTkPAv6.fyJ8PjlwJRATp8gsoS5I9.yGFKuX09Pga','user','ak_98e083f29346a723','2023-05-12 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$mftghv1b0/hr7GvsN1.TDuJrcvvmI0PojOt6VUNgD0xxXgSJlCGVi','user','ak_f0f0e5f566ab3cc8','2023-09-06 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$lBj6p1tAEP9VIKv025JbBAWDe6z7AZzi2yKZWKnicjBxy6kYlQYpz','user','ak_805b37e6cace2add','2023-02-20 10:05:00',NULL);

