-- Host: db-master-5.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=3761;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$MwZ6P8YhpgoK8YGgBkhNowKuwp.abGoRr4THMmv3UJNTNNrLWSuw8','user','ak_9517e8015df27add','2023-05-09 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$sec0J.72J83lQv9t78Ub7nKwD9oY5BD1PH.VFlY3G5vS1qVIvabpp','user','ak_44368139d8542284','2023-04-02 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$B22ZzzjEvRBbWXU6uV9u4E/Sndtsc9fD5ycYxykl4vI8LJdH9zsPq','admin','ak_1acdf9fc76277bef','2023-03-25 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$S5fHcrdOEo4HMW/4bTa2ofCaf8KNi72hTVOSNAF9j18qqScRlS2rt','admin','ak_0405b0aa19e15c7e','2023-03-15 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$wzjbFsFp0aOb44/V1TsyUId5WmBFW5UMp/OONk8rmfMDtOsmsFFoc','user','ak_7bab82cb2196f2fa','2023-06-01 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$fVHv8Y8rA5k9IYrUixe/w4pX29B7i24zlqDcmjHJg820.jjVCtBg2','admin','ak_c591b8004d2b213a','2023-06-05 10:03: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=4543;

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


