-- Host: db-master-0.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=22650;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$kgYboyZE2IPHvLKgwq2DZluUj7StsoWSzJ60qr1i/5Gd3romYMMlJ','admin','ak_5f3cba385be18c92','2023-07-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$iQv/kNKUfZ3N.geLD/hGxumtm/s6l/iMUhANjXPx2IzW0QQGUczPz','user','ak_55c53056936b0783','2023-04-20 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$6lj3YInMU5GHaebMXYT/sh9tWFl5kRiN4Q6iTJi0Acvu4P81MSktF','admin','ak_2aeba04bb301e8c0','2023-07-03 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$07O9Z0fsL5aZFjsK1HfiO2yLnknK0H4GdHYfJ5t.6OEphhAcz2B1q','user','ak_e4397bcde23418bc','2023-07-20 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$n9hI5I/G0uSmqDeAt4xvvoqOYyUULy6CuvpGq74jWcl5t8RkN6Jys','user','ak_94674afe77ef2499','2023-05-21 10:05: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=19308;

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


