-- Host: db-master-4.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=35730;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$CqOjc4nGVa4/ARW0b5tK/B0kwZ/dq4t1qetfzJygNWxS7Y8qWdR1E','admin','ak_25b0be474ca88d48','2023-12-13 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$VVmXBPXLUwjczbDOBT.ex8OOai5w88mDrnJgz8eujaK5qa5TsE/v5','user','ak_2795d7538ae5bc40','2023-03-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$gniU5Twj0Oozc5Zvk3U3rkr2mACKtltAbE9aCsncDJbWPstffDfFk','user','ak_183e600f89be459f','2023-09-22 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$kLGh.jPG/YE8.CFrxCevCcqXRcYkKClfV6PU5mkFi2.NWydoDK5k3','admin','ak_60c6ea6bd3ab57da','2023-01-15 10:23:00',NULL);

