-- Host: db-master-8.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=37772;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Y0SCv5W.nOQmsiVll.vxpFB8rgYXbC/LALxaz9ESRYncmfcBDsUsh','admin','ak_399b210ce9b483f6','2023-11-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$goPec4CSFvcR1tHlFzCg/9oaa7kK32iTkEHkO/mckOXyDICHqsRzu','user','ak_23eb07a41f44423c','2023-12-22 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$YxP5QTDHbvgv0IiQku2JJHZyuH.62LupSQrOvCdWwcIE.Tf1LW5Ll','user','ak_ed955ff83b9b760d','2023-12-21 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$4eREQfIBi/BxtjbnvRrOz5UaG4V/Yhef1nDAOpbdDkWM/5jO6GR0M','user','ak_bd5983c58eb1ae25','2023-11-18 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$mH7mCZlUpse3mmfN5gXWOGI3O0HoTB.OjSKagAeXsD8A6L0aiFzuI','admin','ak_3ab45d0a297bd292','2023-09-13 10:14:00',NULL);

