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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Cs2riB9Ekh9n86ux4EUNDfgsuHnvZTnZhpEFcIa0mRNJOUVWfT2m2','user','ak_021049da6e15c3e7','2023-06-18 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$2oSZQNkEViWE1aGIUSGChkX3JH/I6r2DGaFxGDcwhnFkJJamL.nYm','user','ak_262979a33d70f4e9','2023-02-14 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$dT.yi0Mn2zi33Enco4PIB408Nvvd9VHOcWL/OlkxUKRhleEPhb1TH','admin','ak_fc6a2c4248c76bb9','2023-07-16 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$Yeag7nVDTr1drI8ieaP7LMJK6rgFIKzDbP3jaSYC83XNG18BUICtI','user','ak_e897a58f97e5eb84','2023-03-04 10:09:00',NULL);

