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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$ip2FzdvziAvTRDtyFKK.HF6vA.PvaZmvapFhZvbEwLlHVkqD6qo85','user','ak_7a6183a9f32c1215','2023-11-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$el7gvbxvk6WRiv36KOdPVRhu.59S0FLcdiGJvl4e1HMzp4M9go7a6','user','ak_2f7c72e8bd4b8f5b','2023-10-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$UMc7iZmVaq3ZO.1Q7Zsb6msE6xrPWPETXyhrTHdcyARBQThECyvWq','admin','ak_0ee78221fc065470','2023-08-19 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$S4Hti7dcmh.YHzDW1kReK/qhmXFHxqLuPr5fIOQBPr6fXY4.vTpD/','admin','ak_7b5444f1207b838e','2023-08-01 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$0iy5sl4jrVNRkdSluJcJ6MBPJyaIb/m3/XfWQZk78mAM8Ys5h.N1W','admin','ak_dad263a23f22434f','2023-12-25 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$yIp.ofOZBeQ3m.flkR.ss7R1Ma6.vnyoV.MKTCuVXrVC.Y.l9rEWf','admin','ak_1a85da8a05236d19','2023-06-09 10:16:00',NULL);

