-- Host: db-master-2.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=39142;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$yQMUUTn/Ix02EccWcIEbSxuhYwXP4jCrAO3eZwsErPcwfEMF4vu3m','admin','ak_c457d83fd2636a9d','2023-08-04 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$BKgbqaMoq7s4yAD.bhlDOFaxhJcCsUARd6B3TGhaSHIMWh7c/q/LR','user','ak_fec724f32c7a8326','2023-07-06 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$9XVexS0ECKAJYtIczDCo7Z9se3EdAw4yt9O1JU84R1eYC9AE5DElS','admin','ak_6ca22c89a40f2b58','2023-06-07 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$jFaIdA63zrPf/4m9QF140/qpLEkh2ntCvw5ktc4Sf9iAqnDWHS3V3','user','ak_cd8f87c644cd902c','2023-04-18 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$D/rs0UwSmj7ooEopLGjAbDBzoAEbai8MGefLYVRvj8ZsHQ4w2Y2Og','user','ak_8af91595ba5ccb45','2023-01-19 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$xYKgfxuHhxVfeyUvw.BGpqUWBoAmlJXxQ8P2bFVQPf1fJdATOqio2','user','ak_74ae6e9fbf75f369','2023-06-24 10:23:00',NULL);

