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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$vDAVVdF3dk8KfdOqNA7TedoEqDjlE22C1KWaqgCzoDmOCho5PoRo.','admin','ak_c54e7314aee854ce','2023-06-06 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$8IayijrsiW1AxXwsVpACU.yw9ljQudiYOEyNm3yCA.3H0/XCVgbnC','admin','ak_4d7409ad32151c8a','2023-04-05 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$zPMDr0sjZFVliNpR1x.v.0MbViHUBBr1Etp5xhlBe8JGDEs5.K5wC','admin','ak_a742e0f2ec6478e8','2023-10-13 10:14: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=43328;

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


