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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$ZdvLnXq6PfPbjok4Yh3/oGDjDGai2jPk1laemY1ho7ETy2ByIqixW','user','ak_09bda87be08c1bbc','2023-09-20 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$g.r5tmZpfyuHkReEIa8LuFJkpk2EnVqv9MgOnpsnPo6OdzjgBTWpG','user','ak_e101f9fed4f6d1e8','2023-01-04 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$CiAeXPh7bEcWFWfYhOh4t5t4O/K1QDPPqSQX8cm7Jk6TBBmHpIiRH','user','ak_23b47bd2af594932','2023-05-18 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$Cq9CegTrQcRUt176qKLQxIiQZ2wG2gfYum1W/xvP/iL0j64QJ3KP4','admin','ak_307434aacf9fc47e','2023-11-17 10:23: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=4776;

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


