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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$B1UXW89rCyJHF4sydxp0LZ8YrShMg0KGTVwGl9f/zGS8K8EIt61./','user','ak_b5ed6ea12a263183','2023-10-24 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$F0EZiSOTSSFP9prDcTGkg6Ls3EqA55JKtbDnhsbG.2uTGRFH0PuPF','user','ak_ecda3adb7e666d7e','2023-08-14 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$OXu5ISFNI3ylFKnxTzsxj8r3PWASuZ7QsfpqVUe8Ipbr0EcS.wacJ','user','ak_76d45cb7175b9dc1','2023-05-24 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$2722wYBBgcf740vQxs4ZKLEML.EimEKnxLoIRozgYtjVonoKYtjXr','admin','ak_619945fac870018f','2023-01-04 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$rpVOuM6Q/EhtV4PFSfkqfMgAJfkaZV2Gvs6aIMkEcj6NzgPrqBX/M','admin','ak_d48f79b4fb9e8a7d','2023-08-18 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$28TWby24WL1Mg8HCWMesiXo5aJ//8vWLHnt.XK1wS3Zd6vOQi2j6r','user','ak_1900b139eb9fe1c4','2023-03-20 10:13: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=42679;

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


