-- Host: db-master-8.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=28139;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$d86lkrI/ICSCuc8XA5fR4ntiy6XLiYxmGZhIZ2/KX/ZyPFnGr1uP4','admin','ak_4fa218dcc19656e6','2023-05-13 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$4viqQX4sGh4o3pJtkAvtFRC5Gdwx3oUIkINFxuJfVEKfwTUkVHf6e','user','ak_ada4fd64d0c31866','2023-08-24 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$VHz3hvFHr/p20pGJfgQpQqhkob8JG3Ma8X23ujB/C7HquzPC/oSU7','user','ak_f26ec7d058519dab','2023-06-01 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$rjUZYWQI9S0AxFCwdu.y5RNAqzMb0eVN6pp74fj/HwjB5b.K8dBbc','user','ak_410e694bb1429c7f','2023-03-14 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$dB8LrmNjcwmksOhwr3kKIGe9kguH/e8gN3JlQr488Ib9dBZwY3UDe','admin','ak_ddf08bc8f59e8232','2023-11-26 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$xSVr1y72mgxj1ZURLfPEY1DtMkUr/BTnuvPDQXcOwonGgOVQ.ICvn','user','ak_83c5dad22f0525bd','2023-04-08 10:17: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=30678;

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

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


