-- Host: db-master-1.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=30794;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$LUOQ0udu1A6AqbHsjN2vojUxd9Q.HG/8npBXwCRS7mkbFjvZz5bpB','user','ak_a8ab0cafd6b05e22','2023-08-09 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$qiuQs9LmpVXcW01o3cXhyw.VtWsnkQd9WSpX2ugcaihTO5yDxvmEv','admin','ak_860e6d01804fab94','2023-02-14 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$3pBc9Ad85j6idsroKxhBs146l1bViVaP17/RvCWwGHpamHoCu3TO9','user','ak_66529f6e2daf322c','2023-01-11 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$tFDYIu5HeV1v41Y6Pn4n/sv/EZLp92RCvxoatkLc7lrp1WPK4l8el','admin','ak_f109e1376ef05ad1','2023-07-28 10:07:00',NULL);

