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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$0p.OVqESgK4cR.AYn8wTi/LBI.g2CwWQ6EBnXXCO5Hz8vlbP.6uH7','user','ak_7db5a68ade83dc1d','2023-08-05 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$GVXeIcypMzv76elXhHKyFJFpxRPE5bvumiJVKzZzObuAe6ASJzByt','admin','ak_7937de75d836c657','2023-01-04 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$QRYKJF1Rm5kzgiQkUYSuhKAZkRBJ68WY.b.Xf1gBQ2C2B.7uY/vt5','admin','ak_6aa949b68b42be8e','2023-07-09 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$3WjVByncZz5sYDuRwAEalvytdPqsVtwwwLybVXK.w7BRIoRhwPggD','admin','ak_ed384b2627f5fbfb','2023-12-24 10:09:00',NULL);

