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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$mAAR3/9AOleECS6.zVwlL0jOrP61TQqKCtt/ZYJGoC7MPqNkqP8Dc','admin','ak_3e46004caef7f87e','2023-06-11 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$29Pv5xTUbpN3xl06ttsLfL2wL4SharrlYSLhy4Ql.YiNn2L.x6VjR','user','ak_bcad8d5815b0e776','2023-02-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$Lz1H2Bv75Wqjv/zWyYQPBjU.0NUvF1TaIhvW9WNw8RfibYtQDSb2.','user','ak_72d99bff493a30b7','2023-07-13 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$2bOr.DNwEWpk2kBPt8RzpDevHR0l5CEJj2.3nJqN5S2hnqMNrjzOk','admin','ak_851ca290f9a53e50','2023-03-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$sYmnymuZaVE4klrHm/.w72b8/AGzOyVxEH0BXbkjZ34tIbl3wCjUy','user','ak_72579d048c984546','2023-02-16 10:21:00',NULL);

