-- Host: db-master-9.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=2315;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$vxRe546TvJ5u5lzsjblcN5etr6E52SaOxbpewG9T895eQ8JFndpT7','admin','ak_ebf59169c4300697','2023-07-01 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$3EACTtYUVwUp4LGgsRZxlZQGxcjHA5Gyl22jwQ6YLG5VT4uJ.8PUu','user','ak_4ac42a2e8546362e','2023-06-04 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$zn3bGxmX7kCaHSXXdCGvPn2pFwRUAdf3BvT0loev72XchnzDLHi92','user','ak_b3d8c1e565289f8a','2023-12-16 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$krRjrsgFFUqVY2FI5wPd5IIN1WoJ2KCzD9YPcx/00xbkoS.2D/2PU','admin','ak_2118b100093a1b97','2023-11-13 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$nKKdTo9Kn8LNe7ub/Cvcv7xHsJ43wfFn7NeAF8SgPGb2GMQWA81.s','admin','ak_10d6c5017abf4b40','2023-10-24 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$HphN0ETBFGph77HcWQRkYn8LaV7id9361eSxJHe4WFLU.uFbDHGFu','user','ak_dfd77ede677c0bfd','2023-08-21 10:02:00',NULL);

