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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$1fGe.f2vBZzX5Ux4dkLVyJsGzixveaNo5wuOIsqkYqb7WM.r/gZXd','admin','ak_cc591fd8d632160f','2023-09-25 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$5fnjiBk9NgJHFpLlH45BnCMBq7PT3zp3ulPkRoRav9QR5udvg4vLq','user','ak_3bbb1f81e295f58a','2023-11-11 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$KDUvrlkLw0Jl7PAU6qDnPVarqJA.O6f2YdvPCRA0eol846cjuZiym','user','ak_c2aa438114060c49','2023-06-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$FTaBOxrdXfd3fq5ILr6ap5qLzSApycZGLFapPzlFY/UWjUwmoHLI3','admin','ak_468b497013f249f9','2023-08-15 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$ggEQ.SskWKC819XgCuQaRvfDUCFe9c6BrpsgtVsEnVnLkYjlB/HUB','user','ak_de5ffe68dd268b49','2023-07-23 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$zwsJGBu6q7KExePNz5CpkMhX1jLaonU.WG3/WIqNB144hzlkiIYTY','user','ak_fc8eead49456022f','2023-01-25 10:10:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=9557;

--
-- Dumping data for table `audit_log`
--


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

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


