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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$v1/AhpLS3bTZB9Qiaw5KHnhjxG5V2JgMLvmmDhiCshCg3ygIZ5N50','user','ak_0c89b5467b3a7acb','2023-12-03 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$GrzMahuKISIleY0IHPXU91IX5QN7LOcXeIUwHYkU744O5C.epqquv','user','ak_49d41aeca665942a','2023-10-28 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$p9ChgTWNQQ9jKvtOucWPVgfkQjLzGm4a1.pRzun7DNdhez25W.XZ8','user','ak_968083c4481cd6bb','2023-02-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$wgkUbcQ7CxfH0P2ZlR89OCd3NJ9S.9vvgamcvfPC9wd9NNqCICKml','user','ak_324a4a25ab65d75c','2023-07-15 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$BTWGSWbefreKBtpdeCU8JpRx8Y4rAG6ohpOBls1KonTMADcaayYJA','user','ak_e3f3c8c8341f3696','2023-07-14 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$2rByn7PNDQ5O.VVl8hhJcgIDgRoyrFpn8NfbcksaZpRfB1rdajRmS','user','ak_c68d05154428341b','2023-01-01 10:11:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=28269;

--
-- Dumping data for table `products`
--


