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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$5aJz4dpcJwwLpR9vnE6r1cWWzVMSMLB2D6bfHteYd4TYxR.szu9cU','admin','ak_f3104cdce9719afc','2023-09-04 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$n.Se9Wi6QdaJC8.zAqaxCHgAazgrPs1haRT0HIOYKz0JpslZ8qtNR','user','ak_820152aaab529583','2023-10-16 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$0WkqT4DRVzCTI.wf/cVV5xUg4DalB07H25wJx9bsc0OitUOVUDXlH','user','ak_b6c8d31d22880c35','2023-12-20 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$mK0pp6egvoe5kSGf/5DN8c/X25TrdvhUNUvGiOaXRxaHAfd90DrC.','user','ak_36c9b62044489e14','2023-02-19 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$/1FSdNCnGB4PQAlnd.7Xiv3Dxa9GSPkSb7AWasf0SQ15iDAbI1J2I','admin','ak_fbda9ffa555f95b9','2023-03-15 10:10: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=21376;

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


