-- Host: db-master-2.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=19944;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$shYurOjTbA/v4jbI2XWNPzsMKPErqvvujO6YSKLm.40R655VSTgKa','admin','ak_7d9d7ffd12d824cb','2023-07-13 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$KvlMb3.eEnwa0pWiiilbl7uqslaAQDEZ7sWQDlYq6NzdJaWA496Q3','user','ak_ed9b98a8e1c62cb1','2023-03-25 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$TPDi3ydAcAjtRD/WCC9AnBz5.0g2baMMMfk6AvXztgL4PAThFPADg','user','ak_98c9ddf46a9e5928','2023-10-27 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$opslBUeROIKguwp39e1..PSi26zlC61kpF7ZJWl2xLQZYZNLjf73l','admin','ak_b197b810379971c8','2023-10-10 10:23: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=35105;

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


