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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$If5ImHduGK3EBHSkBsvrVVhXv2FJXIL1CxAFK6nTwhzfmS2B78Mwb','user','ak_ed23ca7a62715f28','2023-11-02 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$bd.nmqRypiqZIojBkZhk3fk2KKv4J1m5YYU7WL7XFc1Puo3APdBgv','user','ak_44d5151cf0d16b86','2023-10-23 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$BLI/PJ8i1REPrI8MXQlho8pGfMEO.rqQlu5Qz/YLmpxTjnLsP2UoQ','user','ak_e517cfbdbdd82534','2023-04-22 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$yL73G.x7Fuheg5mw.ZuDaURty7ndRkL2sb7UI5vru5aBwZTXzQlKA','user','ak_04bdd60b19fffbc9','2023-09-06 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$jL6XXDMWRz8DPIXE7p3nw5LkFDVMPhWqF/R/94FY3x0TR1HBfh9BM','user','ak_1b9bafcd52b6c5a3','2023-07-17 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$pJEiBqXov6uYxcpifA9K6SiAlaceXy.k8a.fBQfDHNg413onyIEjs','user','ak_6d407a961044af03','2023-10-10 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$68wR3k36dZWxt3UAXJ82s0vD3k.aI7bdSHPr8SY2Hf.fgGHK/oLhd','user','ak_321ebd5a1e0095df','2023-01-04 10:01:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=41343;

--
-- Dumping data for table `audit_log`
--


