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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$AuVG9TBPRNdbsFuLqSGDP6d9dxWNhP8fu/xNOrGjlzr8gfIeynG9S','admin','ak_4b0e82511e58177e','2023-12-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$XL1NJdB91aSMJ94N0gmnwecooExbEH7C3.Z.HPBIn.cHSco2TsdQE','user','ak_a5d26beb6c754b56','2023-03-22 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$u0U7Vg7HCFI9UW4e5ui4aEufocnMYGNSPPGyMam4g9S1wIFC/6i50','user','ak_c188eae010ab47af','2023-02-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$PlUMajCkrF82lUZJX9imcF8o0tYiA08kIggAGtplzr8ZtCr3QoUzD','user','ak_e6fe8036d9546679','2023-12-16 10:08:00',NULL);

