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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$WXJj3xn4hcmfbQp.l3bX9cFi05d9hw59PojHZlHFtq6vFIVCZp9KH','admin','ak_71284f82c0a6a8f5','2023-04-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$OrAdNq/XBZoTtNGjd3qK.pUbMEO4cIdTkByMnAImbDo7M1bQsWWCf','admin','ak_441dbe99afc8578a','2023-12-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$FcFCyeY.ffED.Mh19CzFhlulb3XGVEqtdA3qzGViTkL8DTvR5Vp4t','user','ak_b49a20053fca1168','2023-06-22 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$gDjm4GOFOLdjv8Du3NzvZrwS6ZM.VmRGoeD4uua9FfM4nQBWkLRMg','user','ak_741e43aac459c42a','2023-12-19 10:06: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=40759;

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


