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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$8IHxGdk2NuFYNl/KTQB2yeAI14hID9pUVEdZ6XBINaFq2sZi/Dlmn','user','ak_90be884ac82030b0','2023-11-17 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$/xXoCp46oc2xx3IcbasqTPa6FfFUvy1ARYwUDh7/s8d4VntJGLiuO','user','ak_80a2e1db15759fd5','2023-10-14 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$iCwS7LzzcaoMOMQb8.HERR4v5lIH5zjgLEm8ivPrMj3NVpdYk8.Df','user','ak_eb766443978e0201','2023-11-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$5mnbgMy3ROCY85uqH4QUecv21MEnyma80JzpFC39DRKxEpsJuoVJs','admin','ak_02ff181edc35bf83','2023-06-25 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$XpHEM6xOHaJBh9j.t2eEPfTpsfvC2XGFwRAVRk6hIFtsvRLFpjA39','user','ak_9b8540fd304f36de','2023-12-25 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$QcP/1K/tGVMHvh58ESM0R9suG2.NV3vUVO2DJEyw2emoaefav/FFV','admin','ak_d0cd8fb2fb67f907','2023-06-18 10:23:00',NULL);

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

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


