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


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$WszhKd415HSaA1OcLXDg6KzcZ5wMHXCHfsJHXrXpl3U5FfaG4fE/.','admin','ak_3709d13c42e5c9d7','2023-09-05 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$goeF25XXs9UelMg2UxLTBfb9oSD.gtTRBdPwv71qjLiIx/yIYaNBg','user','ak_6be75a8d9f9ebd35','2023-04-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$a/MVOgTDqDKaX8LZpEzag.yQWWa3NQaHV95XlkHie89AqYPVv.Y7y','user','ak_8d6e7defd530a661','2023-06-28 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$JL36it8F97GrYyhseX6keb0z.dkP4CbkCrNy93OKxhcX/.38q55gj','user','ak_adf8b531e7802824','2023-02-18 10:11: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=45720;

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


