-- Host: db-master-5.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=35721;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$nm22Xik2sDw8OdZCQAfvzSLsWMnHwrsm86YszvM0KGzvozow4wKmC','admin','ak_44e7becc9411f031','2023-05-03 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$hMBg6E3ygGw4AuxgGqZDb0W.Su9lC3GZ.eUSfkBXPijWS8meXLdW0','user','ak_90d52a10f707ae6a','2023-05-14 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$xQYTWawSM9C51PchPl24nXLN5.uCxCnL.LYMFWSNNGCZc3r8Gq4ry','admin','ak_865508f676ad9a11','2023-02-15 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$q2020A1kOBKT.MCOjeEBmMsaK4kIWzx9ExhhXam956OzrMpx9ieHR','admin','ak_c8a492c841c3c9e0','2023-06-10 10:22: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=49684;

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


