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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$GVLH1mUQzbHxYqFXo469qLugv2wezhYWvObBudWMKb6KYnsUTV3oE','user','ak_387341c3f2642aaa','2023-12-25 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$xMIKKVmupvmB0xgxSjbjgfr8OHlv1/QWAR7l37aUn4O.kZRk0btNW','user','ak_0e713bac178b1bee','2023-09-27 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$r4BDx9F0rNmWzu1HswK33vFlaunVjW/j0.qNNmlrzxv.A6vGKmGpv','user','ak_41778c3bce9ab846','2023-12-12 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$ZTsmnlHeUA0.2v/cxVAayGKLfOd2YFgfaIzT..uKWh.f674wX2RT4','user','ak_ee61a1017dcca346','2023-03-03 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$qBXSBVw4ogQrFHhNeul22JJJs16kyRsigMSjMM9Kt.TpTAInKRgof','user','ak_45db475bfdb0f8f0','2023-01-11 10:12: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=4369;

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


