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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$qSpFctfNOSbfA4Xk4kZNshhyfAPtqJiCbjFJGhUGXYYDFrnaPY3vV','user','ak_820893efca4a25f7','2023-06-13 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$JKXVvU4zJBYmyGMO9dO5gy.GbhS67vokkOgH./P7yQ34jCxFb/2o.','user','ak_b1191597a82fd825','2023-03-26 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$V2HVFSj2FYeIQSbWgbpHEuU/TOcmmbnGAwpcBlZhV9YJ3W76ckS8m','user','ak_f331af8ce7d34b4b','2023-02-06 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$Xc/kkDmDg5gDgQo5eN/WKmOMwTZYndFF0QWgNq1.0JJEjIVoC2SUl','user','ak_15baa5ee245f6d1b','2023-03-17 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$P6Ncmds62w5LOYQW.LBZ9e0k15ZEw1.8YnlpuMPYSX95J3DXmZnZ1','user','ak_6874737c91a6d81f','2023-06-13 10:14:00',NULL);

