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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$XHF/deFSFP3OVVcuRkV2gRPI7Gum5ZNO.MEg6vVED8BAiJHK8ie.5','user','ak_8d884c1077cdbc7d','2023-10-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$I4G5N3R6hev62bqsY6HNjyNQ1UHHyKkInhS7YgIKzIfL2rzLW1Wc6','admin','ak_9ee215442c94ffbc','2023-05-28 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$/rptws79bl91HLRxSr0FO1TgaDHoCQOD2414AFNFC5GyOQp4thHig','admin','ak_de5d49b1c00b3bd8','2023-09-05 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$R1lo9QMBml.hkeFGxG76lNV27Kg0Zou4auRNdOV7C0keVnlSoTr0J','user','ak_fb5934e38eca61fd','2023-01-25 10:16:00',NULL);

