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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$XGFLcvs3ye.4OJChGvv.Z.jje2veuDHtJsl5.WBG1NoOO9vrOTtiy','user','ak_1e09cd497d2067db','2023-03-16 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$oC8XRoQ4kcKNiYVDYg3NRcuyajiCFyUx8nm2RElRLX.3i2hGMMWID','user','ak_6ee6621f831e5676','2023-05-20 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$6KLEQeDOQbeDNXp23zXW2Nlk2o73sZiZt8M4v95P3vKIzAsUdEaLu','admin','ak_c962722799984506','2023-03-14 10:11:00',NULL);

