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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$4.9hXO6OESBzB0lrw.s7nWKslwkI7JVqTBqIkEXwDjQknxzE0b6w9','admin','ak_54d3a15124cedee8','2023-03-06 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$rJe./6TWN7VvJBMZ000IGgd3r9O7PXkeIM6.OHmMS7IdHWGTE6xJl','admin','ak_7d2a6bde6a8d4a2a','2023-07-26 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$V9Nbpp1LW0TF1XZ90fP8NjyRSER0zDU/qJSd27BrdtGl/UzV62fx0','user','ak_717726036ed5af37','2023-01-13 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$sUghe35e561VbUY0j2M/g6HD6zLFDKjFU.eu.z9S3Z35JKMRCheB0','admin','ak_d1e0628bf54b66df','2023-06-13 10:20:00',NULL);

