-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$spcyMlp99DTzrP1s/OzTDt68NoTbKDW2yram7ew1FMVT4jAbRyCav','user','ak_f88c004863f8535a','2023-06-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$Dhca0HZkYrO9etTXdWvLzlAdzeTILqoxOhdU8L3.TP5Z13nQL0r9O','user','ak_b8c43ee797c05814','2023-06-22 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$UK2EnRhbxqGhXx6WAMR7uu2Vn4T9Hx7Ep5Frb8Mhdt5iU37GWW.d4','user','ak_69fa91a3b4326328','2023-03-15 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$cmbaqoHL39kIbSiaEa7Yd.iAKkt0SkfYp7kPVHD5GgmXsKUuyI8Uv','admin','ak_c95171e46cc5df22','2023-10-09 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$P3M2ALZ6hX3tYFXsRJr.aHbtpwJyHW.iyyUemIJXI12KSroVmH57a','user','ak_97151cb671629552','2023-02-18 10:09: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=26218;

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


