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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$nZubgnTZEQnlbyQXkHsEL0hRe9TnFSg58Xtvk5XvWqV6ynOLVH8X1','user','ak_14dc66c5d79233cd','2023-06-20 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$F7E4aW5befl4r/E74Pd12W4XU8L6C1O8V7DgepmI12/qUoajLZoZO','admin','ak_14c3495c2fcd555f','2023-07-22 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$lOwhcYC5iKJ0vA/gHdYGts5Nlh5gKNd7iC7qCwt0YCD0jcdYblYfg','user','ak_8898c60e3f95b442','2023-09-25 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$udaZSQ9xQRmZVWKl1xreI4xK25s85TLeMFqBdip4/ynUQ2ylaiK7.','user','ak_94e376d9f85af0e1','2023-09-20 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$GZ6nPa2XuPa6L8iblFhe7rN0AXMnPES.VfjbBP.PmKGWhnpJSToq2','user','ak_97a7b9427b9f710d','2023-12-17 10:12: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=30272;

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


