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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$sJPUtL21iKC.PYfPRzNxnH0w3hCuia6G8BmCGjX7ZsUu/CeTBQvxw','user','ak_b67c9ac46235ecd5','2023-06-09 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Yd2RojZ5eILC9ltft9XNCIlLX4vqu94zfMXRKsNKo3V25AB5ePTUw','admin','ak_0e62e16d9b512dde','2023-05-05 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$inZKFibSQXV5gODC9Ug5iWSaZpmpKW.qduWX2HkINsVj6cBXe/WZf','admin','ak_6011a45db9043b46','2023-07-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$KFHKESZU57uIDhsv7vGg5Td92X4QsTbYn6UC/B2X/gNflG2G.gELQ','user','ak_633bc39cb9c32e1e','2023-05-17 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$jHI0GKPpns5xennE4d/ErjxvFO/TIDkeGgIruEQVtFhfSWGqogBRL','user','ak_53c5cd871f1dbe4b','2023-02-07 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$P1N4u3BoGdtgXqeRbX8Z4pQ6W22i9VkDzkvyJrgL4e1Ry.OBirhBZ','user','ak_9fe41780a579e87c','2023-01-13 10:04: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=43882;

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


