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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$mPUXoKxry.gDdyHLy4x7pMJgeSTF4HG36FOJDzm0Gc.b2..k4L28r','admin','ak_918fad402290fc19','2023-09-18 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$IrqXp1XyereOSC15/4v4qrIPXqCMsDmVgrJRAB7DnWOKE.UmwMtt7','user','ak_7b86dae37aa9cce8','2023-05-12 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$QMA25242DmRuEsvWoFtLvKiiq5LlhTiUbLyugHCR/04QVpgQNbz4a','user','ak_8e536378149b19ae','2023-01-06 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$bJpnJ/PHAZxiOrJtcEl70HS.WS7PQ/2xBrHYP/iNzNO3ehKdjMfbS','user','ak_60b775d0e3def25a','2023-01-26 10:03: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=27757;

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


