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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$oJoZimT5vg/BBdf7BcCJrD2d0uz00W7K4.a3WHgL25RHIxahQ9ZXt','admin','ak_63e07abc863afc48','2023-06-15 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$7THP6gNmZ342KCOESsny4ub.roHr9GOkIPvAfsfEPJ1TpNIelrois','admin','ak_aa8f3f3adc063bac','2023-11-25 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$iovdh9.lixGRN.1LP23MQA2PP/D4p3JbN05kde9riMee.oPQbqnL.','user','ak_ca6e934c46e191f5','2023-07-02 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$4yqnOeK4aDCUZwBaAsIJvvXqNdmoBx8CaFlCJou12aMmLdXTIi1hc','user','ak_37b79d684c70cf08','2023-02-10 10:17:00',NULL);

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

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


