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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$0ih6lbp1dPV6H8D1pUQq9KN5oQzdjKWRtH8ApeiF3/M7fS0sDp8zy','admin','ak_fe97486526b20885','2023-06-24 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$r945uuS3vBqLGCQ7b9rnXqM1Zp7JvHWmT99zgWAT5hzco5V9u3R8a','user','ak_cb95ec151ae05652','2023-11-04 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$olZEUdrNTazpF1hZTTwnRDieeNQPvReag91wRricgdaHqGMevp9Cf','user','ak_b88174ff6763df70','2023-01-14 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$f6NyT2XHdPCDSGQAO0imnlO70VqNxDXJUVE/I5ZuKmKOnSXo6iXZZ','admin','ak_39eb5c891e7471b6','2023-06-11 10:17:00',NULL);

