-- Host: db-master-5.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=47251;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$VkIvbWmE9XwLPT9moY4ZA/7kc5itqXdyKJeeb6V7mOO86hvKN6SUA','user','ak_f2b345c427fdd11c','2023-07-19 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$u2/n7o9kUU73I7AXztJKv.edMzhvI42lzmgfiaXW1PUvACT0zxw.5','admin','ak_0d32a0d3a0cc3207','2023-09-26 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$iEXvCifH.6b5uAJtU.RoAq5Q0jJN.O1Wxb8a5SgJD32YIYhjBAxcH','user','ak_f53b3807da1eaf08','2023-04-13 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Y3g1trCGncVMzcMNhqxexcNg8Fi3HPrO427MwUy1TRykud3pSAcqZ','user','ak_6deeceb007078c16','2023-06-21 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$HknUz44SHN/0zXb.dq1esfXvbaOWZ1.btQvDCleIIzmHkn0lvZ6Ew','user','ak_ee71dab8de60ef14','2023-01-26 10:23: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=4939;

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


