-- Host: db-master-3.internal    Database: production_db


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$wk.im/DwxF0eOwuph3Pis2DMQ/nC3ImSoHWWETPRY99v6.5BtoDYH','user','ak_551113d133879781','2023-08-05 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$KQmpSMpWAmEYrFORN5n3JsLEvQ.q/xtrWYLTAVz3SBsS.TVPodYDh','user','ak_f88671a625153aef','2023-03-13 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$nwDi6OETuros2BeL6DdKQy5Oun77OI/DSyZeWd8fYAtmLSYHb9Hd7','user','ak_28a0a92f27133705','2023-10-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$j4C7rx6JbQDZRi8yaXG4t32GEdkQyrty9Zml4xF794HQG9Ex9sTdt','admin','ak_338e091172ab9e17','2023-12-14 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$zm5zjiLPNxA.6E9YJDYv1oobwSxZ/9axVgGuWtUmKFwkMu01.U6MR','admin','ak_4ed3f53ee45731d4','2023-04-14 10:01:00',NULL);

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

--
-- Dumping data for table `audit_log`
--


