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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$H95jUHIJJ51CUU/eyGguzvra7TSpyrJFS1iNQnqOkXbQoxgG43I7x','user','ak_f3db90892b7293bb','2023-04-18 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$xyl8qj/OIy0xKBsPYsyw1WBZv5yx3Tf4nrZiDJIj4XEnnX/xPGrIl','admin','ak_348297965a96d814','2023-11-18 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$o5LryGjr3gYtMms8RW9J/KaDlSLrNxZCxig/x4IEdtyWxrY7RQPgy','admin','ak_32d43a22f7161808','2023-07-01 10:20: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=33388;

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


