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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$8qgY6KJLrQol664jBziMDGzEXROM81kKKKpAFkjilonXRr1ADF17E','admin','ak_f621ebaeb231cc37','2023-06-03 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$ES05ZqxZLr6rAGcjOw63i9pG77V1/X8gI2QqkV5wxYvadoU3ibRv2','user','ak_b54c6ecc418c4bad','2023-02-26 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$z3.V.e3SrqfrphcJ2zzrU/BzH8UM59gzqox4/uI4qOpGCRrSk/edV','admin','ak_a6708501ebffe9fc','2023-08-03 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$ceF4qxdZVf.TK7H6KmdEOxxP5WkDHApR8XkA/R8YoBFCcopId80G9','admin','ak_0c4362fb11358851','2023-08-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$mbvElnNYvRcLVehs4kN6MSaRXsl/txyZUwfL8rVL1EQIbMlF2EYXV','admin','ak_3860191b06aa6c40','2023-09-17 10:06: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=47470;

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


