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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=3041;

--
-- Dumping data for table `orders`
--


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$xA1NCPJSTnKkKx4IFTMAtpnN7454XYl7NuOgAf1aC1umAS4l8exI/','user','ak_e56fe5c27ed5bf5c','2023-03-10 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$eCl.QxsD8vKdN7xr6zo92U9RWi9mYpqYJzdBVc8Qkz4DTJsku3rNB','user','ak_b614ef8cf3561c16','2023-10-24 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$2CmeQPMJ.muJNxDOQVyJIl7w0Ebe0IKq/oSm.MNyhOWVG.3zawDUI','user','ak_00af47007ccfc707','2023-12-08 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$sYqdHT7V5vtIvm5qdKAfRtooeNK3MLslirLsf/cliJzlXVEfs4p5O','user','ak_bce6e0b5cdbbcdcb','2023-08-04 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$A5rU/OqpilxrbcAIqTa7qQ79zwR3IzTiltZd92J2kliUBevnWg7Vu','admin','ak_c5ed147aeb511568','2023-06-21 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$//byA4X3JYaEF5tzuAh8w1QU1ngUBeL2t5dYADO38oWUYjziLFzm4','user','ak_27a194284cf1354a','2023-01-05 10:22:00',NULL);

