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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Whxs0BLVRwKziE1eA5lFZMvuUhpsyVr/ZoX7Hvy/h1c/SVJgS8Oki','user','ak_81dd85a4b695df5f','2023-06-12 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$z/NB1BkHYDxyA5Pq.Fsvwgecfr6Z3iNXBP76YupP/tgEkuJzDLm1D','user','ak_8fa81fb6297f536b','2023-06-19 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$BQcxazIusNp5TZDZDuRzmMG.W3I8SW8emAxkyxRD4vaMN07bfxuq/','user','ak_8e0b56c9e81da0f3','2023-10-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$BdJTzDMrr2doLQSLW90J3QHlMnn6OFXBM85yAlG/L.Lh42gsQ.wRB','user','ak_ac70cac554989291','2023-03-13 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$lSyKuhEOjXSI9l7n0X3Z/LpgS9mXMDi6renwTseuViRURGhWL.7t5','admin','ak_e1dbda7271d9e0e0','2023-03-14 10:01:00',NULL);

