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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=9333;

--
-- Dumping data for table `payments`
--


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$rfUrX5UnqtehZvqFn5Jq0uUsxOIub/GliXH5GEJbRk1tEwPatPJRv','user','ak_8f9b9341b2498bda','2023-09-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$MxgbzYi6zrYRF89Gs.Qg9fcPkOnXz66C2H0q.hK4BzIU8cxLdlZC4','user','ak_62658e940d43e784','2023-04-16 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$MeCWMHZIva1AHC8Aur0.FIrZQJfo0gILTIUyuVthxkkBSvCx31PAH','user','ak_1a2766c894382a27','2023-12-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$ndqEyfn5T8haEBBAaKd9ZTkSym7SQLrB./yhdpCo255ABST90Nv4C','admin','ak_aba9907d23cc2a25','2023-02-12 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$/zwJyIn00O4mC2ugUSw/xUibtHH8R/zkQwyIKP06arvFUApQ9J65i','user','ak_0ada967dfcaea837','2023-01-15 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$yIleR0MUA9yY/rKXXVrIJ8qSQLPlAET1RwWa5txPEuC.mv60Wwdkt','user','ak_5cd0c844c84ec62f','2023-09-25 10:23:00',NULL);

