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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$RgTBfaMgWYAy.IP9PlMdCX3vf9NUfRCo66jzxM2ttnGEqlx.SjcPd','user','ak_fab8c295f533e8cb','2023-11-02 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$mO40DM/Uz7n3u684vMjilzD1spoCKlLdioXRK/w6f0VqHwyi.we41','user','ak_3070532ac6de37fa','2023-12-04 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$5dz9Ba6k9vuepnewH3lZXvQS808yHaqdd4CPKRbotLQKunIP20kLz','admin','ak_0bdcf25bb07be8b9','2023-05-03 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$hTj0EFrvJ7O/sgLWhYsAszaQLDvaXnzdfHEJtSbggwWvM5wxFTb7i','user','ak_7eb2dbf1b873e46b','2023-10-11 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$pVRH519uk91OFCxbv9rinSlF2mt4ruUy6frH3kwwrN4eZpsd6Gyyh','admin','ak_ee6e8fb45da9af44','2023-12-27 10:19:00',NULL);

