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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$X/COPghuPpbwehKNzjvm76VGnS/YXndRwnq3fndeaed0kzjR8NLWk','user','ak_c6168198291e7496','2023-12-03 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$AHb2X0EqB.0tTnEQ6tFG8JPsfLD0Eq.vX6IsMZ0QR4Ko16F29UqWe','admin','ak_5fa5107031f23ecb','2023-08-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$ghZDg9vrC0VhsyJTkK4SqQGpBDZxIVMGBf8ziEsWxyF04S4yN3ZmQ','user','ak_c6e544657a37f1a1','2023-02-16 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$HSrFXm9mF/8TjkGp3kRVneEb4zSHesFPvgIkrMI89vaO7T4Vz/osv','user','ak_e8064a348ea18661','2023-09-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$O81ua55BzrJq01qBhII1Ox80ONMmhp8m1tMYLvDHeZ2.thbP0V7BY','admin','ak_23e53ada80a86171','2023-10-03 10:11:00',NULL);

