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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$I1iaEPqsH1PTCsDg/AYG3dDeG7QrXDQ9Fmf3hI/fmQyC6GTUF4tze','admin','ak_c882c6c4a5918bfc','2023-02-28 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$OqlZ3na7AnhuNFzVswly1pZYEe5YrtDPuKQuBLbEl5MKvnovRSx7l','user','ak_fa549b2ca990214e','2023-01-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$mxo.YspqoPrACtzOKcYUkatkdNmUUOZZwlHBTL3duLBLKtOZWBgcG','user','ak_d03b85ed0e499d8c','2023-03-01 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$yEgWpcb1l9V590r2HAPNbR8y1WRqWJy1hwCnFNiTwnHKFwZfsVx8u','user','ak_b1a14e3c98ab5750','2023-08-23 10:04: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=13564;

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


