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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$dJaVqGIeaSquBvdcK8p4WqerYT00LYPXgy4U2en5L3X3itziwd6fL','user','ak_eaecb0e2537737f7','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$4mnjy8G.SRX48NhzsIzMe.5CMNFj1PeggXusgBvPOQIssTisY9mc0','user','ak_b7b3143a50ecffd6','2023-11-24 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$kZ80NxyfIu7XjRedhL6x0IJzDyWtiq3pi.10tt8uYV7doyYfAcJdZ','user','ak_72acbfea9af13b36','2023-01-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$1w1tUVU4tFolbLyA8qGopHcmYTXJQ377otqMoT0AS9gNNmA8MIlGn','user','ak_5e677c65a49d50c6','2023-05-17 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$D1dvS3Ap3Nr.QXVvLNUPeRxicKmjTkc6L1c4qLhvt1eRw/ln7ll8d','user','ak_c3372470259da182','2023-02-20 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$yX8ekzI7XVu./BGcK5dbN9JvSL7mcC0EIzkkm8wCuRVG3kcfmrNFh','user','ak_7a586099d141c0ca','2023-09-25 10:00: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=16691;

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


