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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$Up2bt9a1gFeA4wKBkrHvK3Li5JLLjcFP26ZefC4tNbhDuOtmtJy8P','admin','ak_cdf8617006172c99','2023-01-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$uzZFZsFaE9DeHG.l.qKFXQzJ1GqiaHeJp9X2jGMCrBhCOdEiG/od3','user','ak_34b37f9a48716a50','2023-07-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$pFz8cO.QhNhcLQKucCQEnAKPPnecHg83GdqG0QW3cLbn02evXF0j8','user','ak_7b10cefebca47c6b','2023-05-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$QZXbaActXZ8yLaUI.DO2j/u/yQO0VVCIPchbOCQoiXmGVU/mrc0BR','user','ak_ed1f5308f565c93a','2023-06-17 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$tDEdqZHbjULxpuE6esShZfO3NYZXGGghZ/5xQFRUmDjXsRLAtAnP4','admin','ak_2027e06d39704e57','2023-05-15 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$ZiazT6DStuHrquGE5kBYTFSdiEhblWBBm.C2TZt3OiXxpyiCcRuya','admin','ak_cd888d56d4e927ac','2023-12-24 10:23: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=47198;

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


