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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$SMaqoiqpkm8bgOJxmw32ldDMBet32rHYHnRWS6d/E1ryWweehymO9','user','ak_fde7c8874476df30','2023-10-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Kk6eVJPTTOAXX5johQIzNn1dPYre72RDPug.s4EI1Ei/Z8.2DcBZW','user','ak_f168ef37ec7449a4','2023-04-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$0lvev5Xs.uhkReQKSO9cW6ROiHzSC1fXrd86PkmBr7KUUVUQ2XxcI','user','ak_d1b180a77edfd672','2023-04-26 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$O5DNIeA9erf/1vCjnhwwKIbKoZUkNC7u26/5AsclDYtd7yVAUuHa5','user','ak_cb97012f54dfb06c','2023-07-17 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$tcXgCVGzvOoRVwyP73VZeyI2dBf1b6uT96RVGykWVsXtC/qgkLr8o','user','ak_f30d118448afc442','2023-11-02 10:20:00',NULL);

