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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$SOAENfUqfEeKvAEaoPQxfruShkAckGwsA6b3RIV2FtSGm2dgDCvY0','user','ak_8c7ae8a7aae4d0a0','2023-07-07 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$tkL4hOjn9XixRJsAW3Ht9wJrOv6MQmPPo82XVe/AulPTOdRCbnxng','admin','ak_aa155de3ca3c09f9','2023-01-08 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$yjMsQp2SmnM5/f0Q7PFVlUEYxjO8JvJBCfI3TzwEp8O.dn.7hT4JA','user','ak_a7604f0335011d55','2023-03-10 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$bcSLkItp1JDZCNEIX7xuO5ZKcBwVk8zrJrPtNsg3iNCCCHCXsBoxS','user','ak_0b36ab1dc78666a7','2023-08-25 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$jfcAor6ZC4QQB6k/zYPc3OrdHgEjspjSF/ZTgAuEdaztbJOP7W5Sl','user','ak_1cb68e2bd72dab2a','2023-09-20 10:07: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=48766;

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


