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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$.JzGFHyui9e.N/z4ostFQEUEoB3s3Cw5xxDfT4Lu1LjfQDebjcn6m','user','ak_fba6ce5dac27e1e6','2023-12-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$VlRr8FuvRcJ7lpK4UfevVV/pfKroJvYCKqZEJ2v7Tai1KJElqydVV','user','ak_3b32ee4f9256e639','2023-02-03 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$R.s/pnJYvshLWxbXyLEgAQfL2E9tkAMwthNpm05zLiyMa8cCaTFhe','user','ak_f5e3e17a2728a4b8','2023-03-16 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$oRw2cbsMzMbLjmi2qFXsmKNvURWaEWh3BxpWau3GQNWaFzEnAd6gB','user','ak_8f8c3f7dec31b295','2023-11-28 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$Y64qtlG6EnN8QqV60p8eNEGtV7R4YavsIdVMWjWDA8wL1BAQqD6XF','user','ak_b57e81cd7fb8739d','2023-05-10 10:21:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=24815;

--
-- Dumping data for table `products`
--


