-- Host: db-master-5.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$NLIxfJMGGICO6H4DNUxIB2sm/xfUy8i/Ndi2rhb9dK8C/a5i3FSIO','admin','ak_51c1c6464536d1eb','2023-06-12 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$KRAWjXh6fqXv8Lhp36Yh0qlSp4tdeAIQEQIYrsGAQV20GD5zX/v39','user','ak_b186cce9677f4dc8','2023-03-18 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$c5t1RMWQLAZmSjURdYiCFbGSwkX3ZRa6plIhW.95eUpUlXbrqkBxn','user','ak_f71d9c1993930a84','2023-02-02 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$y/uXd43jzCv9QT8eic2.bcm4MPah8qGhJRw9GIJuQdFqszfTXKFJh','user','ak_593a94d1343aa160','2023-10-25 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$5Ezs2SJ97xQOi/No9bS8CI6PWxbzZvf9Yq90E70VfStFcvjzOi5Ap','user','ak_c148ad7c0076364c','2023-12-08 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$QlKmBVstrMdHuB38y88mAkMIQRxwsjDSrHUy0t9E0mk73QUsi7cQF','admin','ak_d7c378df8bf73572','2023-08-10 10:19:00',NULL);

