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


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$9s0THqb/MGzoMTEay7lWNQnvVba44L.o7soDUA8yDjTiniXi429fp','admin','ak_6484cb16986619e3','2023-10-26 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$RMcjBRtVq0fozoN/LnlIFmr0ZZzkzMhyBh5sZ8/k1CM16DcQDfPpU','admin','ak_b946f80e5c2dd666','2023-05-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$ywOWRCxO9dqTFXPRbEfXIpRzctc1A5oqaY.fNUKqtERAVQxJ24ZJM','user','ak_48fd9d87e1e9c446','2023-12-08 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$jAnN4ou9aMuTMZM12jPRaAX3uBWq4y7A8rAjUzfWjjEF5/hSjat1E','user','ak_e988eeb76526105c','2023-09-08 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$1jXRXDuxL.cYTNgw/AwcQxjmmlMKceQvF2.sppDgmUk9Zed4EDbGl','user','ak_645bf36ed059fe59','2023-12-04 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$2cTDZftzgevFeF6N31r./bTUGLW.obh9qnpnbgXPuP09xPbZGptWu','user','ak_b1ec645e8edb6352','2023-06-04 10:11:00',NULL);

