-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$aDPaa6IrtrGffF2qyadJKwNJ8GlTdbRFXUENBrzM1eS1cYy.JvN2d','user','ak_32ed6c50b407a070','2023-03-07 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$o.ZCBwVibFuuyI5XyDsZ5kNA/9jcQcoiUUtJtr3Y9iQrHU4ctbJaS','user','ak_595f44f92661add7','2023-07-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$QWe7LZiztQGJ623dDWOyrs23Pvd7ICYj7qVCE2zjhds838uNxXB6z','admin','ak_f1e502659b9c50b4','2023-02-13 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$lltTlfBQN9XKz0I5fGI.EipgzErDoNeAcDco8P0/gzX6dvOZ4rA1a','admin','ak_c2dbbb748850cf33','2023-11-23 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$.wJIR83r4nQCuDbxZY/7uh9HBClkCVQefF/UBXA9H6jINhy510n3y','user','ak_2b163da1b1cd2b12','2023-04-23 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=34793;

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


