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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$054TUE8fsidQaPdE7QcbxJ2AVPsFnoZgXdexo/D4vCn2WBRCIuJr7','admin','ak_6b98c100ae74bc61','2023-01-25 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$KNsFSpuGx9wkdHggyhDVZAe.014RiLjFw7v4vxTquahTGAQ3683yz','user','ak_904cfbb78caf6f07','2023-12-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$iyOq0.XF5FwymV7noXlZosbwaCZjvJvmO888QkRmFQuqH30eWNTTW','user','ak_a7e70e2efb8223fc','2023-11-27 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Qv3g.SdfarMOmZ3zQJUfLZNcOk0.U3mcFrsgL./CH3V93Di4ECX4m','user','ak_fd7fded11177f1df','2023-12-16 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$tp0DSRPE4/ii5i3/TjVCdLYfRw.ZwvUh80Pr49dTHT8S2FdyKEGh.','user','ak_727a15e2bbd13d35','2023-10-18 10:07: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=17649;

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


