-- Host: db-master-8.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=35005;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$vssF0gjevZxLpUVSXL/nuuJFyoO/fbh4zmExmqpratEbHweqNl5be','admin','ak_1c52f82a69d74a2b','2023-01-21 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$i3mtEiLM4HXfCyG5kBOPZEnIuKIZuqQXxmlV8cIs86jSiTUpzFJGh','user','ak_9bc77cb5f32132e3','2023-10-27 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Zbq/dSyzXOWnmRqeXAl2GLoX77YhSFT6pqGUspiN.1xk5yjZK2Sc3','user','ak_bc76c5a53c3eea47','2023-02-11 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$SN/IdJ0.ijdwh..NEJsXsx0A/l6xs.hxm0UKVYLm1apdyMpAAb34E','user','ak_bd3c8a9f79626b99','2023-04-27 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$Y47yFolGUpcJ/hr84r7OK3O1ZCUSbfiF/QEAsJAj1pS4n/X9fg9QL','admin','ak_1be8a957c05d9c98','2023-09-19 10:15: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=6501;

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


