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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$fpJT/TVtgkJ54PysxKvSwkkzBoGNOWaae99Y4QdBUxnDjR7.sU2Dz','admin','ak_9fe24cadaa4dc483','2023-01-25 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$vf49SgB887GoNL.br1lVxfF3ju1r8IAhpMmJ7rH9UsNTYW24/k.Lb','admin','ak_c1047605c36b55c5','2023-03-11 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$qlNl9XK/UTJp.9bEO5Mk/yCxoTNLp/fDoOHNNvBCiL7lKJ3O5HM/c','user','ak_962059e0ccaf45a7','2023-08-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$iuE4mXo.dqICRFJ3O8XRYbU6uuh05U/KSXRkDc3J9o9hrRgwqDA4Y','user','ak_156eccb365ba5758','2023-10-04 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$laxGiSJlfZDTYETC1ajkVGv/tr09lNKXVEcBp4j/yKo3J8Yijuy1R','user','ak_dece582dd7ae0806','2023-04-22 10:18: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=48744;

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


