-- Host: db-master-8.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$KCySVal5xSwz3rDMQ3bGUPolXEL0rlJ.eujlyQhqflV4I5Cn3DjWj','admin','ak_3a73361e2633e011','2023-08-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$n2d2QGw.0boKeiL/HofpXifYYCHbAhYDNnz0Pd.PelLEN4snZLTRj','admin','ak_31a760226ff65674','2023-04-27 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$F4vsYEy6p1nxChshuXjudsMuuebhrPKzfmEb/aEs2tAt1HkBfrXG4','user','ak_5794660688bd3bb6','2023-11-26 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$8h54w/lU77vmSthLEl6oSl62qzsUy5HMzhGVFERgqPpsKNP2WVt4A','user','ak_6ab9ea5b33ff37bc','2023-06-05 10:19:00',NULL);

