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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$WPkTdACp5cnQQUWirSfTTKtoxD62Yrnk/9zqHIq0kgJHg2AFWLjkn','user','ak_85c30f5b0e5f3b0d','2023-01-16 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$yPbywEyNDz6v0yPFKfVEm9H0cGKfiTGFPn4SShFddcvZ70CLHivhp','admin','ak_ec3f5e1f9393841c','2023-06-03 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$9Rm6JpHak.Lvv5fPz1KfUGkYBV8VEhvlotDDPRCvM7kU8PCjbCg38','admin','ak_e7fc964f2d5cd0b2','2023-08-05 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$NI.Uh8ENjOHjYeVH0kv/7A9XgUgX6kJdPxC.znN7Xq/k5UgpINi4P','user','ak_b4b8657948578b6a','2023-02-16 10:05: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=9799;

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


