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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$9MC7orcUE60eYKmpv/ElTl3W0hkQA6MGIag6SpSn152/cgM4AT3fW','admin','ak_355b5175e6681722','2023-12-03 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$TH/ssoDPqYolwyJ/v8ZDakjp/6XeKTfuibLomeCzw9eMGtYYHTyna','user','ak_4fc661edf9ed2b77','2023-11-16 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$s4UV6JaVbh4K5UCNB0fz9iX73/NMStnxmWGaXB8ilTT.w7fmFAOfd','admin','ak_9c2ea0a610fa589f','2023-09-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$nxZXmipL/PJLx7B0CPy6.NoKAbnrTQDtuAtMBT23WQ8il4J5kmlqf','user','ak_6ead443b660b39aa','2023-02-23 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$yUGrvz9/0j9bXGGRcEEpCogyGO9dITj8aSNRa9eVyMgPH8TFbBVRm','admin','ak_60f5a1f21f7bd37f','2023-12-16 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$NHKl61rhDt5lH9idg09ntAvNZ1PuV2GZA0.r0YcVoxWUv.M2irCeQ','user','ak_edacbf585e428ea0','2023-02-25 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$D1WrMipCE99eLthjFRs8aQY.nipq3JcTz8p0FosAzBbsOO.G1tcjZ','admin','ak_cbcdbfc0ca21807e','2023-12-09 10:07: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=2216;

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


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

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


