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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$bG4duJqGCXox8d5aXNLgKXYX/klDHpHIsGvhsSDXqYQkib7jbLYfy','user','ak_a569a9a4a01d1d4a','2023-12-19 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$vOAkM2Ngkl21CBVFkrhJKbj416MXK.81M.zrJABdOBnacKuRjiy7G','user','ak_f2237e4e821739ec','2023-05-17 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$nIs7J4bfmrJDTIvN7IUPT491nQ1.efC5xFTp5u.05CtSMkOi3fQ.6','admin','ak_4faca9d452f67d20','2023-07-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$g6aYiaGg3DX8k4PIhXcahSBjFpn3L76XIzldQ.WLDxRp/a5t66pE4','admin','ak_d5e76b28d1e859ed','2023-08-21 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$wXSdEmjsgp0ggQKW6XIjMBpRz5utERkBLJJ3X7txnJx9yjuUK1PdW','user','ak_e4b82bc8263f8410','2023-03-28 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=21564;

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


