-- Host: db-master-6.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$ZS1UvHQc3CTyePkONE7Oou7XDVGjCgfn3seabXFk4lwWoOWyDRB3/','user','ak_478b3012c28eb883','2023-12-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Qh3OG3LQ12hgmz5xgjr2kPCUa/0tXZT9qxcIEyFJ8xFAgssDpKUDQ','user','ak_c22315d4c50ea2f4','2023-12-12 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$Ao4EqIod3FRoUJg1cbrFvT9SAegXzWQxQhKo8YslGqTxKrjoVMZ7Z','user','ak_39b3b85ae95dcf35','2023-07-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$yW8/MMUEqNgAIk00.Bec4JT4HZ.2GEXm/du40a2DYZeOWoj42kSfH','user','ak_8e304e60c59e3fa2','2023-10-19 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$kkpiq2bdlnQquIyiVy2fCXwbKaiYNFYOwdz9/5GNC.epIyXUqhUul','user','ak_2bed17b1195c47ba','2023-12-23 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$1aVDMdJuGlFRMcA15hluoOnfMWltXa3FWxB/nd89oYM5quhY7tlES','admin','ak_fbe92fcd07531ccf','2023-09-15 10:20:00',NULL);

