-- Host: db-master-8.internal    Database: webapp_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=13248;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$Gab4osdAzANAYKaAlVDI7m.O//f8OTnDzTL8Yu7okvkkXdEKotP4w','admin','ak_2cbab418da3a8f1d','2023-02-10 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$7JcrGQBmjIEnieLCuRAjzDLbm2Bou93DVLUue5bljMgGMVL72bdnc','user','ak_7cbdb0270390c8d5','2023-12-27 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$qTOnwAT1mIYV7i7T3Pt42AmAgJIVYXLK/KobEFZvCl/o154Fqv9qy','user','ak_b1cb464bd063310e','2023-07-04 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$twogV18keH/7nLfB4CgYLfXVQdOF7y4chJO.4eIlqipxThs7LyB0f','admin','ak_308abdc08a31a3aa','2023-05-04 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$Dl2qMPm03MBZ6Wj5N1GERC.ajm1HpLwk/l7igvjan7BWwbiGcotMA','admin','ak_0c3170ea95acdbb2','2023-06-08 10:14:00',NULL);

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

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


