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

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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$oyag4.T8yadZUyOeI7P64BiayRbCXJLXVlyzcGhZV7SNq.wmO2qNA','admin','ak_7faa741bbc45d881','2023-09-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$/vXNL.114by84bPTmCQaTdtNj9uUEUPJPfj7LPiBkdl317cQASRZe','user','ak_f1f11b226ec2fe22','2023-11-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$7KaQL0YDn6GpEXZ6YZV4DpMBncgBD0MYAEvQexZ5c8osS5LP54RlX','admin','ak_9b5680defc669816','2023-02-15 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$wYwMpYzRRaEaazDg5yXujZD1UwvhJ3xyqEknxxIaUD.BMQe/nrE8C','user','ak_f10ec9e8646520d7','2023-05-06 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$q8g6yOAou.lHvshH84E5cqezNBkyma.7uu25431PYjiEo.SiBEmwi','user','ak_4ab992528f6a98b9','2023-11-16 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$kyizO/o437laJ7uY4Bd/FZmZHceNOhop9Gdxm0oJDcR1Y1rwWgb88','user','ak_6e44c2ba70582755','2023-03-22 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@example.org','$2b$12$e35och4MhWeefHeU00Mg4cigJmUlwOnRn2CjABvNwhNIpLMjQfrqE','admin','ak_f1fbb35385d1b0dd','2023-04-13 10:00:00',NULL);

