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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$v55z4rU9spMcl/uH/AMiL4alPe95SEDkpxVmNxQ/jTofiLbW8MTPN','user','ak_e95de02e202728c3','2023-09-21 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$KWza8qYqcOhz4SEBbTIhn6donD7mEljPkh4XjjjS7I0lCEbjLSrmD','user','ak_83e99b0998decd76','2023-08-12 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$8dTujf8QCDoqAZBitKRooC1lS7Xtoy63v3kV0grMHYzUFwAtEOlPl','admin','ak_34a625b38e9135a3','2023-08-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$Omt2l4bWx7JOA3yomVTt93O71y0f3LBdtPpBl1cyvPDerQNaipypW','admin','ak_b61ceaef80e9bddc','2023-01-03 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$oIYL47QK9pADXzmM5Rik0d94K0jUKEA5e87XhWnrrfV5IP5g.eEsF','admin','ak_3aee763e7d55e473','2023-07-13 10:07:00',NULL);

