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


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$.3Xi4UDp8ir272rbqgC99tJVmmcCnVQWfLDZsio/5E/DLtIrxMvFW','user','ak_3455f1d68b05f463','2023-07-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$HWASDICZTct2RwGYfl96A1YXlLlejz3Thk.mNJaf./aXur/G6rded','user','ak_3c7157eb678a60f9','2023-03-03 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$ZjRwUVQBiVAI4dwDL3bLNBKmkketjs3aNjlxcFl3hBgKNItIdqATI','admin','ak_eeed37d19c337909','2023-12-11 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$9xpDnKho/2U/bV5lXI.hCk1mYJ56C7faphGXZE6KpHEK2BWVv.ke2','user','ak_e74090cc8d981b27','2023-03-02 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$r/3srUG4bATAwof1xiame4Cc.R6vHokwCaRVWxmZ.57sQknHWobBL','user','ak_1f6af881db72e874','2023-09-02 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$x6snHFsaqpiKdNk5TMZwMdHWzbTAlgd.DuqRXTWlebYIQXY.ggOQ8','admin','ak_df5d667b9c39f26d','2023-12-22 10:05:00',NULL);

