-- Host: db-master-8.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=27804;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$uDUZB9ayrWoj25M61QPx9AGP6NBJTxXrXvDrU7i4KjMoNptKATKKH','user','ak_d0eae0cab8875c4c','2023-01-10 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$cmD0/yXVImxvhBS50TSegn5bzn9R1/vs7sBKoLTof6cYhSNlGzrUk','user','ak_e7767772f479c132','2023-02-25 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$WSbAKI/S9XVTyj9wty0nBVlJ5D7k0sL6VNjAHYf/kno.83Q9gTjec','user','ak_c75870da222e443e','2023-07-14 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$BgILEMJRAm/4uOFgUpYQ.FMIujnzKyd61k0z7OijgSlaz4T3p7dp2','user','ak_c0f5c723bd76c73a','2023-02-23 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$lPC955HK3k7Um6DN0ZAXpUv7WVrZpRWvDcxLg3KRMNB.Rcumxt6jV','admin','ak_cad5c2546438315e','2023-10-22 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$FWULOhWrMIKVzbvQpilhdcBahdZlPZtyG7wZRrF17dqTLJO3PWPVL','admin','ak_bacff72fedc59f62','2023-11-23 10:23: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=37302;

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


