-- Host: db-master-1.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$bf4eSAlqWKQpkym/Y6p/w/FFKCCXwnwLyfCAjzjlvVMFvNdCgj9N8','admin','ak_971482504974f735','2023-10-01 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$ZN0U0YkPryjenmVNP.410dw6uFF4HwMxmGGyyB6mijbYKqfUBLFGT','user','ak_57fb315242915bb6','2023-11-10 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$CL9AK2RZNBK7XqwrrGw//FNRHEMRwL9wzgl5xSdBGp9QT0/PUHHIr','user','ak_1e8c5d65255a3774','2023-01-19 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$5MoryrhRHwHJ9OgYB8iieKZsjM7t9C1b74mB1GG8QRGh0eTEOCWg0','admin','ak_2cd0f66c3a49d97f','2023-02-01 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$.D246q9PJABJWlo4qoV4xfB8sR38yd7aqjCL.89BHYtOEy/UxNLwf','admin','ak_7c6eac0ae278bc14','2023-10-24 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$grGuxDGG3A4nCnCEZoh8tDvG68ZUSVUcnkUt7iu/uscAzGZ/Zmht3','admin','ak_287067591f8275bb','2023-08-02 10:09:00',NULL);

