-- Host: db-master-2.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$1OrUvG531rbVKcnjqrIBlmDCJ/oAtqyBBIJMYjOhVL0Lr/HUmGGC5','user','ak_28b46dcd672f2afd','2023-02-06 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$tF6cpastBvw0wtyIp0XmWGzLcYgZDmYAYzm.feuZ5nZf8EiA3Wazx','admin','ak_d72cccc6851316a0','2023-12-07 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$iUrdqwec2t8QhHl0cbY1YVlPzx8q8yr1tgq1my5vCUTEuLGxW/PZl','user','ak_157cce6f20e2da5f','2023-01-16 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$3KfVe80xyXG/LFF1EsafT0IN9T7kkNBdzUl6iSrzwZ3fTvK.FyrRE','admin','ak_8b4f2081012d515f','2023-09-08 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$PqJdJDuYwODYgeA6Xw45EO1DeVnBU/eQHQWDVg0fyZhdIUPxGLpWq','admin','ak_d45528aacd648d10','2023-01-24 10:17: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=43866;

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


