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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$HrYVWStKi1Fk3OzSlSxDRTjAOkTbiueW2yvNGZeYB/uRVQovDImDN','admin','ak_3774507c9b3f7cdd','2023-07-20 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$WK3wS3seOInnJ9dhmjfkxYwxeHRsODBwVg6pbAUHz1Qeu5CPXPv5L','user','ak_36d042fb6c9baf12','2023-07-20 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$0vaFJ0qyJ5oGtM1t0PX2VyoZWcZRZnpnMDqF.qstyHJ9pS2MizqEw','user','ak_69e13934ba999a06','2023-10-08 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$nW9uFv2qbfsbVEZ3dJNaPjEAHdEsFKkq7y8IID/uX26nZcKeO9Ob5','user','ak_f14379bc054dad57','2023-12-23 10:00:00',NULL);

