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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$UYJiTCSTOdot6z1ycYI3Yi8o8qGJN.Wl7axZJVSjyQNILFzpY7UOh','admin','ak_4144b3b6d4c6b190','2023-11-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$sQe.ZiSmyotq0gCqNCsWYCAZdwb1e9tPjglvUWruoXOal8YhljG2B','admin','ak_688a74a8e4bdcec4','2023-01-21 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$hYrMsSrGVjUOBu5TRgEg14Po5VW0TfCcfEsNsc6edqp0Xlh47RIbw','user','ak_fa13382692bd79cc','2023-05-27 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$ZM7Ww3fC41XysryFv9mq4yL/DTLsgQ3DKxeZ.gAcmX.QA7Q2v03lX','user','ak_014503152cfa36ea','2023-03-01 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$OwLWbxd.EG.f.jDq0lEfYF8o4LRLlsJ2BO/J2k5L4yxBzvmXM3U/7','user','ak_eb56e6725b93be72','2023-01-15 10:23:00',NULL);

