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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$CAApAzfcyEOZRfZB3x7jtg5/bTxQLcjyq5GV8XGYmE7aiKipaUl7b','admin','ak_13b179d8c54c3af3','2023-08-16 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$j8lqfkyoc0JQPkol3wUP1iBpa3YnqzphVU6w/xX3fFbMMVa7opu5h','admin','ak_355af20e407ef69d','2023-02-14 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$OFBJtLWjIVTU2bSttnBSx1AmLscIWFBIC2kQ4ShHApSCk4Z9Gx3Wm','user','ak_0613937f167cbba8','2023-08-08 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$kCM3K7f1sU5x//1N6ZK01dsOSFUmyVSmv1Aj4b6OUNeAr/5JjjMZz','user','ak_acc5370f80df3435','2023-08-21 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$KjnkpvotsRrqDBDx5wH/jURD5IgKw4D5e1exQfmhQexcnYWBYm8kp','user','ak_61b839d084f9a675','2023-07-06 10:07:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=30927;

--
-- Dumping data for table `sessions`
--


