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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$U8WH25sDVG0lCU3WkJqB8VZS4TAlMs4g2fkEYZIOeh6Rud9hfb9BZ','user','ak_7bfc8efcee06cf99','2023-02-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$TVcUccs9FPzX5hN8/3.39Cn.j4qWil5GSCK2fO.xkc9Uv3H7Ksepy','user','ak_9bd4d173ec2e450e','2023-07-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$QykG7jtwwebRDx1CeTN.6uDIe1iFuK7iohLQ.CD.YRSJY3EDLSqj5','admin','ak_a6f8a41e40ac0d80','2023-03-20 10:18:00',NULL);

