-- Host: db-master-6.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=7059;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$B7Qgy9XKWWmyhEhHIkfF5uhhYqLP7gP98lnmp2S/UZyK9BlRBCO8t','user','ak_e4150d873fd15a49','2023-08-16 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$4vVICLO/XryjjqykiBfYI6kOXjLPCk9ghPPbHVOox.Qk5dkWD7a7Q','user','ak_fee7d87d6237963d','2023-11-25 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$4XQVjF2.LVPbhCFQXTU/EIOTyqVFveKMoxfffI5MAm8SUdg2un.Rh','user','ak_c3459b21862f36ee','2023-01-13 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$YD.2oisGyDNkuH6CwqpTpKY4FaHbFPk4eflrJEuvKkZv0yvXV9EHa','admin','ak_9bcb159126a94a55','2023-10-24 10:05:00',NULL);

