-- Host: db-master-0.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$z4TL7rgOKC8SQ4exrwmhsEno2yV2zDyfplH0HjovOBq2Y9f/8n72F','user','ak_49d0a9ca0e2ab286','2023-02-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$D7sT4ua0NrChhpLlLjfXdCtCs3glXom5kZdWRkw9mrR/bQU25avGj','admin','ak_3bfd37a500de6e9c','2023-04-06 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$05unKZjLFHco1OCP5kM1BGk1fFboAlUFFbNnH73y474UEwUKsK1IZ','user','ak_60515ed7ca50c1aa','2023-04-15 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$fp6i4IDErDNYs8bPQS2FKXA.T5RA7gzLQsfMXX8rRtBJhQEuouSIT','user','ak_9cf36e46183f39da','2023-06-01 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$FlBQMpGjTBn38fwBKxs5/58cxuttL7HHYFueksh1oFqNaSH2IxLeW','admin','ak_68be382da21b9190','2023-10-22 10:03: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=11854;

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


