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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$F1S5rgiaxCf6gLr1dpszRpuSfK7oYo9nzp7An6ZbUPnZ8QVSJAJ7T','user','ak_c69693ee5c6d31ed','2023-10-28 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$/e5723.ooK3Ag/bgOLXQNX488kXbtR1oRQJAmtazQJ824NcuvWIOG','admin','ak_2b9551576b3a4179','2023-06-26 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$VYYZHdv/FZ9vuua06umva3Bc6suveEouNlQCpED3Ij.dovWDCLcAR','user','ak_2bc212a9b5fd7bab','2023-07-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$v47zmPGWJNlJY3xzvt7Pzj57MfBHwV916CCySALrNbPgfRNl7XrxZ','admin','ak_af804fc072df1a64','2023-06-03 10:21:00',NULL);

