-- Host: db-master-2.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=2633;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$XIxoDe6aKM5zplMejXdNA3193OZu2P9jL.3Uaf68Ws2hJnrgi8nSM','admin','ak_3a7177bc4dce47bd','2023-11-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$kgtELlH/GWwKy7LUFhrfJvZUInZG.TkvxN1lXez/xUOOa7zRf6R6V','admin','ak_f0e30f468d3b86dc','2023-09-10 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$BvxQAPHTBevSSgJepKtG9SYkfQ/UXknvxxoIwR0fKZDZTciywjVQi','admin','ak_a65b04a2c07cf98d','2023-07-05 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$E2ZMe1wkj2xBVO896ONf.b3h/K6uba1Gs39szhz6RXolFZudEhG7Y','admin','ak_54ff48019356720c','2023-02-17 10:06:00',NULL);

