-- Host: db-master-3.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$6ZlaUBHq.Sn58.MDHfj139.Ayszdh9GN2ovG2PkEMNZz/ysq0RVB8','admin','ak_a15b3596d4fccf8b','2023-11-13 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$oMFeNQBPrS4AAprPh2T.ZcsGtPge0wQbDMImBbB/67ZolbDd.WoVE','user','ak_bdc69ba6c43584ec','2023-11-03 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$DpnGUz1ZvepssxvFw1.ITnOA8AhEyUtcTTvrbrk5g8vcwVhuX2leX','user','ak_9132add09ead22f6','2023-08-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$vR5bfO9eYmwCtUH9ez08fcgkX6512edv9XHjDYraoa8ch1ER1a3D5','user','ak_d6adb752775710a8','2023-12-22 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$dDWjWubE6KE1RTiYsI7h8sJSTnOc5pBHyjZ12.NvOnecqddCDdVCY','user','ak_621815e4cbea98b4','2023-07-01 10:17:00',NULL);

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

--
-- Dumping data for table `products`
--


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=17724;

--
-- Dumping data for table `sessions`
--


