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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$eVI5m1TdYgKpB/NAMacHBDITTcER2NdP5UrWHawUT1uFS1jJwvO8G','user','ak_522eb58f3964da91','2023-06-25 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$X4u0VIp0eE3XhVpeuIDI0EA9izxDoEq68sMvuYHh.fxaZCwOsAwCx','user','ak_51c46823d10f85a2','2023-09-21 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$39WggU7JIx8mIMdsmKsBaoKcohCCJ9ryhZ.59BttYW4cEAuPrLX/w','user','ak_d9db0a4a8d457063','2023-09-12 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$eo8Gv0c9ifw6mLnDS0B03gVUtU6pe5cPf57XrjTIECO4dx8ZjeoTY','user','ak_0f368e538b5de8eb','2023-03-08 10:14: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=38153;

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


