-- Host: db-master-0.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=18736;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$XzsoB3YNlABlqEqrxCrp1dkQqLjtxdK4I1H3MuJ0KNbnEevuqCjPU','admin','ak_6c9574217d19c935','2023-06-13 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$sxJkB7em7/w.ghDJP13ZvKK8Hsc82nfxzmgsQrVb7ZfAwiVwRkgQr','user','ak_fc8677546e0c8971','2023-11-13 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$WU/OTi176BKcBBChDdvqnMJ4wnKj5aZy58Py0f/dVzAul4v4X8CnD','user','ak_2908ae6e348fb931','2023-01-28 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$QpOi.YEh2y4VF13A/i00Xbhor6AIF.Gbx211.DK/v8LjrWNqc/5sc','user','ak_b41eec8faf73b310','2023-08-24 10:11:00',NULL);

