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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$ZD2Az7htTU9nouOppJA4RzHctN/HHATb2f3ah/3aRiWx/DCnxo58j','user','ak_4874a4689ad92b68','2023-04-12 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$VuxoAM87VVjY2IvIb/YwpOjqFNwNJbMqnkShLaVUIidx7fJsm5Sfu','admin','ak_b824209655a27e5b','2023-11-03 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$d22n6437FEIYwQneUTyz0lpA3YLds5xtCfZCVEDdOVcTAsQdtyYs/','user','ak_0b824a65d8dec0b8','2023-09-17 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$KgyBoElKYdb72bEtR4Wn0UD6Em19mt47Y.oO7fOdxNnSWEFZHQvd2','admin','ak_ad8aa9b8d0846304','2023-11-16 10:16: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=31522;

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


