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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$LLnD81/tEdCAqFMHrp/FZx1SHalj.4nXkGVqRpnCMBu3vuIAC3Z5S','user','ak_3a426648ad0212d2','2023-04-11 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$0eSTUjcG0Qj1uUxTWMnGJYHXKWzrKOnQea9QDVzUOrwDk18PxmWZ5','admin','ak_88d6899d899277d4','2023-07-27 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$5mMw0zuMLR7sLLRhZl01JYNd2TZk1LmgOjOQSVAXy.Zgui8.0DnWQ','admin','ak_a0850e8f0cacc0ce','2023-06-19 10:19:00',NULL);

