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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$qAqKRF8oMO1OwPMrqVRSoUX1f3SZOuipcvLNNeuapMDgPvqTEhF6o','user','ak_dc201a54e605308d','2023-10-27 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$Yze77DVf7CIlFlp4gkEWbw2qTcjm6C0SyHsEVYlDpN1/c.JdEmPKN','user','ak_4d73115496556aa9','2023-02-25 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$w50e9q8dLqyXlRMrw9knS0hPSJbomX4zzvLKh2xONR3b25m6tqthz','admin','ak_732da9764c8b0ae5','2023-04-28 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$pvi2n2HasN6ed/OsompBrLHlLNXUAiXcqLpQf6xsu/O6gMzA.EdB5','user','ak_478d392e1f4e6974','2023-12-16 10:13:00',NULL);

