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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$BsFIj3bjHIjPcuQAf6XZYbFDF33UnX5UTZmE0avxxUJ4DN73Lo9iH','user','ak_3d5df900ec09f98a','2023-11-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$v4zu2c8Pd0pZHOWANyWMrsy0758rjEh.zeLgiaS8QjSkuRcvtD8oi','admin','ak_feda227a7004e879','2023-03-18 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$XF42/Dl5eUco33LuS7ayPrUFHAChYbXWQ0RERj.17djNRmwH6AMnt','admin','ak_0da17f5f8b902b36','2023-06-13 10:16: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=16171;

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


