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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$jYuUfI18uaPeX9w91V3Q9S2/CVsptZWhiFw7K5.T.xcO2bUcHAuNO','user','ak_a17d0488993a054b','2023-03-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$.dbyfYo5F74E9rmCJn8MHjdtoibJf/IvadgUf0rjlFdbVyeD3npfT','admin','ak_83d89ca1016c6882','2023-12-21 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$75JcDvvx3Pln3oJn98e8IWbEjhf.STRlqgu14ubq/sWtybMVs29/v','admin','ak_cfabd7f243458108','2023-08-07 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$B8HsH.8aVbTG3vnKpyJvX2zZZfZ/1EnUrI8MH.BQsAZ74ayvJK5jQ','admin','ak_114b0c935a049e62','2023-03-19 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$U2wuzajVhAcoPhL/fjL5XuYeRwB9fgOmNxiQldhMiL5oh.dYRT6JR','user','ak_fb2734cfb4436c3c','2023-08-27 10:12:00',NULL);

