-- Host: db-master-4.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=17952;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$dMieXODyDVm7ztZLXLE.DbvpkoRCMspftKIPIPJH5isMGnXKid6VH','user','ak_8c57e8457e0b5026','2023-12-28 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$XviZUW0weFI50yzIt7ZVzEzX2zu3d/GECxGvYe4RCkMkJFAJ6uyAH','user','ak_b37837f7689a31f3','2023-02-06 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$ih45JmolwIWJFGZmSnd5I5Qd9Z4jER5fOaBpyuD9IuXqmp6GiFfW9','admin','ak_b29846c00bd1898d','2023-07-26 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Q1vlwVZ3le1eJ9SgWktigW9iLoIZHfqVoq4Z.dICLeeInF08FcdwF','admin','ak_072b86c15b2123b2','2023-03-05 10:11: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=50736;

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


