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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$pNf/dmJwVVTSO3c6mraiWJ59seIDYXUdLo6ntINCkZXkCvQ7NWHuV','user','ak_db658cb13815a92f','2023-09-05 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$ok45LVR6EEYOuqDsMPZUevjf7/bcD2qGvLzxUo9pacEpbNo5Xz0/W','user','ak_1c251210679eaf9f','2023-07-14 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$ER2/uBOXhJjzRj8FuRb8RjmXiaATN2uLuknRaK816b0SFME2IAR/i','admin','ak_aac4db2785b5f864','2023-10-05 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$nP0cSvplkoaHw/9NQ/W7Jx7CXScoSpJFfmAYbIKoKS9mjlP7SPx2O','admin','ak_40e5bd9afbee38f9','2023-02-25 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$fi76fnE80fMY4719mMCuH7xFgQuJ4dcYd4OYtZQodU0k78YlXH0X/','admin','ak_19ec38ebd63218ac','2023-12-07 10:05: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=15786;

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


