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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$CktCRXM6NqE6YmviP6h7SY/Z5oQ8z8ws1K0XegdGPWOFpVMWxhZOY','admin','ak_1e4d6bbc74059df2','2023-06-06 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$rut/te6tA97IHI81btWj8WXoDkskX5I7ojX8SHscxQBA.FdiXYc/X','user','ak_dcf7f5e181e2b59f','2023-02-27 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$4FzDsb/w96C1wJi93lKh3sQ/Hq1wLxtULfcMgmi73OHBCGUIwHCjQ','user','ak_626adb44c09f9d5e','2023-02-28 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$d6gXGesHDEk.f59LpqH8rPNRKebRMTyGIuP8bZuQti3j32YtZZFA0','user','ak_aa4eeaa80620b68a','2023-11-17 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$NO3DAl0nHsLhDDOiwKiRXm9uNvp/at58lTofg8uNEyj8tNmsQEiMP','admin','ak_a712c1fc6e149563','2023-06-16 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$0FPwyD76D/bWDNM1W0vCJ8mbHdE9r4ZhJgURmLFomZ5W.fC4PPWFP','user','ak_7636ca92b528493c','2023-05-17 10:21:00',NULL);

