-- Host: db-master-1.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=43000;

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$7yq51SWtXQQY0v6eukIHReVJvCNVMBADra02Uhb4I8V2U6rpC3264','user','ak_0090a50bc220e939','2023-03-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$5/z5HUMlXQqRJgFhwdHMTFRnXzaMTZC7ZFpkIyYxjKBf3tUxxSlJQ','user','ak_09cf88def5378eca','2023-06-02 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$OjxinSt1UDR5qiR0wHH41m.9S6FJAGf35amJOZgXuAGwe2KQuVrqG','user','ak_33c37e7144bee41c','2023-02-12 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$21zmps5rZzivdzVhAIkirixIwU2S36F8E1Ue.jGjW66mCNW0ANTSb','user','ak_687a15c66f826984','2023-04-12 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$OMZB.upENKsXmMdOawNFJZT.gZcxgGJTyNvzbmiOHdF2gT4ls1bqo','user','ak_5f8e44778fe3f234','2023-05-12 10:19:00',NULL);

