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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$IfLOJcrIT2vk34h3WKWftF5xON3JI4VxvUcsm8j7/XkXnEq0tH.3O','admin','ak_ba4b59f43653a6b6','2023-03-08 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$yTOjhrdWhXySeVFtkqEynPxkeMhwnmTiBuSxl10LKCGzjTXbQDeyn','user','ak_f6c6428380ae3d0e','2023-08-08 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$tMouGjZ7ntLuBIM9.b1UsiESTaUC.svYCNuyKJ75SESEK7bBq9gkR','admin','ak_43dc12f150573f21','2023-01-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$jXlykK2jr.YMo.bKTEAKl6lHluQxa/C88s1RmOk.7lVk.NvQiB.C5','user','ak_78a8050674f84549','2023-07-17 10:12:00',NULL);

