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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ehFOzzSSfCiXJjKmmz5wKktwjuSIYLsYNkArEd3Ukc549LSp4TkAK','admin','ak_f533b9164d047d5e','2023-11-17 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$NlTRevwXtFQF3miEqeTEkYHfLrWxulI5C47GlYXUuP8n4RQTO6mye','admin','ak_41cbae4866ca4c5f','2023-04-25 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$/M0YzDnTnJC6jugK8Bb5o4SucG9N/lqnHom/YZfmPXruqBg9xptrL','admin','ak_b2f5735b305de5c5','2023-08-25 10:10:00',NULL);

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

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


