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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Xob7LmJmG1xPaubZbu86PoN66B6UcfjBKHos9pePqA.hkvsDKSeCI','user','ak_a38d541db767ada9','2023-05-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$KbPnhONnxaRNcJG5jKHnvmH0AAwaNhFypYFZI9Cng74XFwtRromh7','user','ak_d0719ca917ecc783','2023-07-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$sh2LzwSmnCatZbMl7MxIWj8SfPdzYJVELlOf7ZRB2KJ8lxf9UKssL','admin','ak_b38a135eda16f161','2023-06-03 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$K7LI6FTDHjaXxhZSiYWSgZ5yCbFOyqgRtqSsYAFSRkHWWz2585j83','user','ak_1d55e865ff5a4313','2023-11-26 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$QmmqsWhB1vbV52egFSW6SyIG.DrDGWuEhIHL2jJ5EZqKQ3HGxumEC','user','ak_2aec938b4bc9cebd','2023-03-20 10:07:00',NULL);

