-- Host: db-master-1.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=31922;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$6FfYyGCA0iLiSVWPpZuW8nXWR5szxMPLrMv2v2vplQcPyyeBxEu7z','user','ak_3a7ca478f74aeb9c','2023-09-04 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$srvA1KufxmYAJUnwl.hID8aN0iHssywDSy.GXUd2HbydzUdRIi.P9','user','ak_4e48484bd2468883','2023-02-23 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$uVHbrmCiUqyFoGeumE6uvaA/f5bO/tImePvLsxr6bQTltNY5KpCO6','user','ak_71edc20929437972','2023-09-12 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$ZFtjc.K.5Q/aDuy7WKO.I7NiqAuPshZXQQzxAGB5oG/Vz0531OY64','user','ak_974e032f2630e16d','2023-11-19 10:23:00',NULL);

