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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$4sEw9jdtkLMmZgCN5Bv4SqDCzCuRpUrYMOaBWvGo/QkmCB2dbhbXJ','user','ak_3c878887fbe5896b','2023-01-11 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$pfjbXZ5j1AAXA4MrPOlfWX4M0m/NHiTg3pp9b/aXZldGLZMM3tJkC','user','ak_35746705872807a5','2023-07-17 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$2KAh/msZObKpkfePEhEtvko2KOfHddVUXrGr7xcVsND2HKyyDAgXz','admin','ak_068940853fdd5604','2023-02-02 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$oTI7l7CR48423a1cKCQXrYI/YNsPPWRG2RGXAeDKg07609wcynKIj','admin','ak_cc201a31aaf36105','2023-01-03 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$OChqQLIyt8PHjvFl2/kFGYBBXXXNuu5KXRX.dUcSciZ9/pHmAKv/d','user','ak_598e58ffefe3d674','2023-04-05 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$4D2cIZAPuHxZLX8qssM/7/FMgjlbfG0RrSpuJwnEli1FVvpF1fQAu','user','ak_3949da0e98ce374f','2023-04-02 10:03: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=41254;

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


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

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


