-- Host: db-master-3.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=22882;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$1aGKJVzo3.m3DoHrfqonyBfyHyhDtLlo2JhvNF/RBo.1MjJ4sC9V.','admin','ak_10c2f54013818a7b','2023-11-08 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$uEHbN2p5BK70eQBeLvpsJy5wJh2PT.PBZiZ3P8fM4g9vhBKQAGFNa','user','ak_22029e9701be5893','2023-03-23 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$Ck56iEGEl4zkNRkYnvEW4IhW5b5wDgkrkfg2r5zTcCnJywzjxjUJO','admin','ak_20659c3f8dfc6320','2023-02-25 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$s27G/.c9sjr1lyhVB6BHyj8O2g7cANJUnD4wLR/bBqEkZEzNdNlSS','user','ak_9c2a479c55595f42','2023-07-01 10:20:00',NULL);

