-- Host: db-master-0.internal    Database: main_app


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

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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$AXR5zFpVvsdoOtZzR8aMkqKLPqkgsq9aqf.CWuxzbOWM/GO6fdiEt','admin','ak_84d0320ede331e80','2023-01-08 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$1/iV5Q8eUiGRcLACbPyBzylEB.4bV4slilIXrDS6WwlTV3EI.w.75','user','ak_f570694744d9b328','2023-04-14 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$02qonTeGIkoMXvgoZiQUinazInQCf.rA4M20J0ByUDPje2llgZ39f','user','ak_3df66e6a77af1f53','2023-10-01 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$1yFDVXZ5DJhRljKaANhGRpLvca.BOBxITDK4.hu//dYxze2XuxQiO','user','ak_cf6f6c7815e11433','2023-06-28 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$z9vNsaLbXfOZl6IUWz2H467tfLDcPV2pZBptXy6L6D03B4saMFS7m','user','ak_fbcd68711026ffd9','2023-01-25 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$vl13tKOTTr2wx2q6idPPSBN5SLmYjBZwEr8GQSuuh3GWoXoAGKnJA','admin','ak_8d0ea21028fee80b','2023-02-09 10:21:00',NULL);

