-- Host: db-master-8.internal    Database: ecommerce


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$wFJ6L.RTj8uXMM2iUupQYdgDCRgleLBpXo4HDILsDM/.lGkO8WwNF','admin','ak_f9ac1846aff127e6','2023-02-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$skmhMKZJQmDmK96WF8YG2UPz9WV7GwalvMDqsSlBy14RnvS5p1OuN','admin','ak_f0e8e996e9e81d15','2023-01-01 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$PMQJVaAAUgRiwGFBROP1/F7X6920apFUDMBwwh4CCtHNln50KZ4O8','admin','ak_4baef164058f11c9','2023-03-20 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$pa08nL4hTd41x962NrRXHSsG.xEwhBLL4KDMF8l6oo.OldkHhpY6S','user','ak_397df0ee2ba76f7e','2023-01-17 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$NGFzzinyLUwv2gNfxY8uKAN/mvw7DzLFglJ6A/TcAVs3aCrX.u6TU','admin','ak_0e3e68ea3d5f9a76','2023-01-14 10:12:00',NULL);

