-- Host: db-master-4.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$GL88xk5KxDrTrOUR9XLqifN4D97csULry0up2/WBndAHORqzNmua7','user','ak_983ee9c818bd6775','2023-12-20 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$QxqlBJg6eWy87I9Py9N.D0VrDI4izoNQzhNhRX/gGp/zFO6.2guCM','user','ak_0bd9f529f2031411','2023-05-13 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$1VJ2qNihQ8jezCErQ4128xDyPJZzea8fq4Xy09iggT/6MscaX6JF8','admin','ak_29b7fecf4c9e4d0b','2023-08-22 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$p5eZM.BfxeyIeFxV9Im90QuSqO.VnH61/MfawakSKG7TdzWalptLq','admin','ak_519104bc7c8808f0','2023-11-13 10:17:00',NULL);

