-- Host: db-master-4.internal    Database: production_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=42894;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$Hu3kB2RVlBjAKGMtIgf1itB9936/KNg1jcBnAFg/GW7o9hUPTANqB','admin','ak_a4345ec29255f133','2023-09-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$A25Njf.ClU1tbpNpXqbq7.bIswmG21ZsT7Jd8ukTmUVS05jUgi4MQ','admin','ak_7a42100a444119dc','2023-11-15 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$WbxLyonI8SzIKVWi4KvzNrNZNrxs6GB02.yhXqkaljFxhznYL7nMr','user','ak_67aeb7f63565c5a1','2023-12-17 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$PPFNb2fZMFgGqxFmIhg2nar52S3du2Cq6abKY8L2Rg6VbBZ/g0PDn','user','ak_a5e6db202508091f','2023-03-20 10:06:00',NULL);

