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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$5RtizAlBsDtSJ6s06YL.VaRma3VxRC1WnHQ/GnyQmtQCfGCR/JnWy','user','ak_d54b2cfd7188e5da','2023-06-25 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Xc4sMXn3jCW6s4P5hfU5KsBmqUVxLdSYco.BtSAZ4PQFWg8tm.rf1','user','ak_f31e9aa6c156076c','2023-01-24 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$cOq/HASnmxVibVMbhDZuoHoYBfjl7iRWlvVf7vmpM3udss5w/DNBc','user','ak_b359910026b9af3f','2023-06-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$rxuHzCvEQQScIZOfdwSEZ2hsZk657Q74iT6E0pV/gQr8KUZhZvQ6G','user','ak_5021dc39273f5f7c','2023-03-04 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$cU6Uh6TxD1CqHJ0.SLxnrjIksHMWaFzr.a5m4iJwWPaT5.aDn2WHy','user','ak_ca3e5388f0075d6f','2023-12-11 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$QQRaFioOohKBJGbLILYq4LR5dJv5XAsXzktRizCEblxs1dAFjFNSz','user','ak_7e8fc3608c972ebf','2023-06-24 10:02: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=1335;

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


