-- Host: db-master-5.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$UasM/lgXEUw3P4hPWHP/XkwoZjt83Hi8N/wlg6vRIPspWIIm3qnXV','user','ak_df744f13e82486df','2023-03-27 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$4s9eytYd8IkQldHPuXq3qF4sjHq56SFW47Gd53xM3e9r5FZt1XRSN','user','ak_f3431d2724a96a41','2023-05-26 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$hMY/KzgjjwF3cFEDxcnlugyO.P7dq8Zl9qo0ofsbOmQqRwltMrCfV','admin','ak_ceb3cf2b9ed5ab6e','2023-12-02 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$o4bRq8FyKg4f8ylB47wCzzNG0h45feLEUe9Esn180sNTQAJXoKVQu','user','ak_e69887661da71d31','2023-09-16 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$DsQg/BcHWDJU3WDGZZqD26GyaFwevZpHwt//q5egLu8gz06lLtY6W','user','ak_3a97d9318b7678dd','2023-12-14 10:21:00',NULL);

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

--
-- Dumping data for table `sessions`
--


