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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$4k1khjC1MEYldrtsjmqdpxNns5E6l1vFAHyV4IhX63P4QWEhnTqiy','user','ak_0a79bca0d4bdd4a5','2023-09-16 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$k7sEmxoUi4s7LMq.syXdzWSQ5d5LhDN10NC1Wwlq7sbswxMxeavj7','user','ak_5c7e0a1cc19484c6','2023-12-04 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$xfymtdw6UQtMv4hUs/iEJhVXkNf8Yso3CywaO3i3RKb01MOe2Hs/k','admin','ak_97cf4c1e6c6070e9','2023-01-01 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$c5DJOdIzb/vCjO0wrEnl6qUEyAE3vIzJRX48mgxNicmEIPhbV9zUT','user','ak_baf0b09fa60ad3e9','2023-09-14 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$.iCTKyJ7mayzO4o9PXqwlbf94Gu4aiiVXjgMeVR1AKgQK7/HqVjfj','admin','ak_85b55771eb2eb6e3','2023-10-16 10:02: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=21533;

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


