-- Host: db-master-5.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$MfduUrQ2xA83lr2fwN2Fsh8AkYhUd137O7JH/UbHUZybz.rTM2jur','user','ak_f935d66cba2513ba','2023-07-02 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$iAK8jxysZWA2lISyPR.jF6elmFvlGXLq0zhITYrRtru5.3sXU6bHz','user','ak_bd263572e09a2d1a','2023-09-17 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$cDusUXAZiICC15UcqB4683lGc3.eGhZXrrPbnB0lxvvcZDVPXrjkr','user','ak_d9781422cea0eb1d','2023-05-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$tA8JDaIo8MlsTGCl1CBn0qf5UxWtGKKw/Q/YK8kq8S5ebfPrUbf1Y','user','ak_4663f422aedcd4b5','2023-04-11 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$lbZ2lPGpt42ACV8MO1DdqN5FlStN7qpZ/jpyPx.3eNvoENg16TWeW','user','ak_97d1e5a8761d9bce','2023-11-10 10:06: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=7200;

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


