-- Host: db-master-7.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Pyw3RVmcdZteD3x898YPN4dIJFyMQ0UrsA.NFyfLdFePuxDNT97/7','admin','ak_5f40b8e125c03988','2023-05-18 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$S9Mnvn6Y0PHEqmY3cU9elcxxbyEWUVXnhGRraKapmUNXq9vyYU2/V','user','ak_06c2ae4e73d46a24','2023-12-05 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$XeyzPXxvPHa3KIx2jdT6DRD4S8DVVxrgQNnKK3.FHsjliOaskQ85Y','admin','ak_53232d7748003f5b','2023-10-26 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$EOPjagQxc/VyHc/gCMplAqZunxCgkeVWngmUPy6oygIqrDTc5r.kl','user','ak_0acb357ca0ba5bde','2023-12-18 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$3h4cWvRe4djqAm9IkGie53cudLIPsDbk7yxToB4iuI8SKDo5.DQKn','user','ak_0061c8ee51a801a7','2023-12-22 10:17:00',NULL);

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

--
-- Dumping data for table `products`
--


