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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$5drtSsJN6YlchaUtere.5zJeVmgjQDwDlF0w25uHyI9UfF92HM1Gh','user','ak_8b25ebb76c49c5df','2023-08-02 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$6/jPfUMJNAaG.R/il4N5eD95vqInNjn/iM6eIsRRv7UraILXrM958','user','ak_fcc6e659612bb812','2023-05-22 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$QdVbcKK0gWGftKIoYUxljBQaE1E82p/alOTxQ9HpSkHvYk62QaHZh','admin','ak_922999ec71afb788','2023-02-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$EUzq1Ke62E1WHFbezyTQ7mEO1ZutjU94JArE.przhr6OIGFNgwf5X','admin','ak_d9bb4d013d8f3593','2023-04-17 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$UfYx3irWuTcIx6ky9n3UqF7HwLL3PUH67vB/a42GBsfvp65WPsG59','user','ak_aa161538b874551a','2023-02-08 10:04:00',NULL);

