-- Host: db-master-7.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$F3MFtnRZoDeJ9KZF/uGMLNbCpjLS9GJRI7K40UM/fIP8eVzSYhT8c','user','ak_662713dd2b1b722b','2023-03-17 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$jZRcB5P93/lcCHp6XOb8hnFxONmsjqLCMf4fYkLyKa1.G4jCvcuW/','user','ak_0f3f2a6ec8777521','2023-12-13 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$d0bECjtL8uJtKynx/v6ZXxLelQ.fvkqb3fX7y1P76VGKuXpFOngct','user','ak_0ead594c42b48b77','2023-03-05 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$oO.zmySf/lp6ZUCp0KJuI6fodOTPo1/2JufWgU2UJFya9MQbirOKd','user','ak_f3ca5acd2bf4b18d','2023-02-03 10:06: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=36385;

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


