-- Host: db-master-1.internal    Database: customers


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

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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$KqjxQdGNR00vvQX5951N8DuNxtwNsJyp34kvnjSTtb4hD8xXW.SPt','user','ak_29e4e11bafd9c311','2023-08-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$JgqlsD16X1/sK.VKl5dMTZA5CGOpkxOoKYSAji6GMwNSfniXWNCvv','user','ak_3b0f11282a56158c','2023-08-05 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$LSZNpAH9qHwYg.lyCjLazSpH8NOO1J8/hb8/uTXKNC5CDW3YLdmF7','user','ak_c51b04d1038f173f','2023-04-13 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Y8FxrXQXkuEwLTz2XF4zpi/VHA/ISv6g2fkUmYzNMqPIP4RZjMJHo','user','ak_63c4cdb83cd371e6','2023-02-16 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$m7A.8nE5ououNWlmShhDH3OHjpIy/UaFfmWCrHBegunaakxwh673W','user','ak_365c96d07a986f21','2023-01-20 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$wvP2dWv9/q1umPH5rbNPmdsJt2vE1rHXWLb0ISYj6WzxjKJIfWTDF','user','ak_bc284d2674b4a050','2023-04-05 10:22:00',NULL);

