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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$fnlICqsdgTOrq92ksH1/bEcYoqslktEXrE.Bx58wgjwID6VxItlga','admin','ak_6ade85fc5cb0325e','2023-03-27 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$HD.FW4KIayIruIwk5RgjN2Xw3ZA3/rpnXalSahR1b/KR/LjHlQOFP','user','ak_be0451299abfa425','2023-03-16 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$msSzIpoBeCVUDlUSEVZaI.CT2cC11UfoQNgdZbxoWzeFkXT.xWX5u','admin','ak_623994b22a6aff29','2023-05-24 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$o8nMIhWGiZJzkjjys503jrknr0tDRABSpHv6TTyIkN9MZ69MY/t9K','user','ak_bb70f689ae929ef1','2023-01-22 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$2UPh79nNs44E2WMiF9DMImUk7eRtH/ZluVDP6l2.CCzqPKR10anbX','user','ak_a88704e7a3dfcc98','2023-04-27 10:12:00',NULL);

