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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$ogqtn.e/Nd888U.1vCjQ3PG79LtfvnSqXTjVmtMB93/uPwn0apACF','admin','ak_211d32bb40a170ff','2023-09-07 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$N44Lp5zlyKKZ2Zy46Pml0CkMhmciVLR3Mu2YwG0Gbw6UzdUFl8twT','admin','ak_01d1200d6d9ed847','2023-12-20 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$fYz5bZH1/6qeNq1iZniFVgUlTVFQ4IyFe8fkhP6371a8sy0S6w/d.','admin','ak_5dbd5eee8b843d14','2023-11-01 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$4.PZfuLp8OoPYyNb0fiGVPKv1Nt9M24EgG53qn.ffGAp1VLHJCSvE','admin','ak_6c92f105e1843595','2023-04-05 10:04: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=6904;

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


