-- Host: db-master-9.internal    Database: production_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=30856;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$8zLJBauyVE5sYRse62lka2/wjV.I70OzaGLcWrDyjCfGFSymiR/QJ','user','ak_5f9672835aac237e','2023-09-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$brEqljBZwG80jlHzuxeW70p4MXIvUNZxB/0oLeo8JfdkbQUSUEvB/','user','ak_f84e8e746e13090d','2023-03-10 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$dUO/WDpxJZLRX6/bs2/bnEBKHXwWrWasRIMs5CH.qP.D/DL7s31r4','admin','ak_b87c7c7af749baf1','2023-06-22 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$tk/gwwrZ1Bs1M9m0jAFtE4ZdKybed/85hcnBKtJalSlnzoBzh/1bd','user','ak_66fd5faf5cc3af80','2023-05-05 10:17: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=50355;

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


