-- Host: db-master-4.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=37633;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$y.a17P7VHxHYWaSo69rkbTYz1Zez2L1XVqVtDjoGRW3i6/CPG/wjt','user','ak_65f58cf8597b4389','2023-06-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$BC4evBZanhO33eaqX6nYmPZoKul/PpnByGk2i9KQkJAFi/Jlxn0a9','user','ak_c12a05b06e620a6d','2023-01-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$ufHoyPOrlu037s3qFzOLqyOTbri6NHZtgkS/0fxi1ygqGDBULee95','user','ak_b7f8de7ba93cfe23','2023-03-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$MAO3bdyhSFVqV2EhYI7rllu/0IlgnwuXpnWFciHzg314VhM77CdgS','user','ak_93d45241384db32d','2023-03-05 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$mOoq57mNpZuJz4Tmni6PUR6lQRdUz/fWy0Awpi7320T4jHIlti15N','admin','ak_0a68148a7b5bc160','2023-05-07 10:09:00',NULL);

