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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$TmCdE1XZFgfS1Rkn20qDOAQdcEGXINlamnCZNTTz8wGjbZBIvPFsz','admin','ak_df80b6c9013f7097','2023-04-18 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$tFHxcCa8jlkrJiAEQ3dQCC0zC1jua4uRwSfZuSSCDiSuFBhV26EnD','user','ak_885ea587745c0585','2023-01-07 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$lkjhhB6llQ4YzoPOCmmf8RhwNkK7cVlR.BZRRJgInXV4O3D/vZjZA','user','ak_dfa1bb0c6700d3df','2023-02-18 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$vyZk8fud4gqKYcuKZgu8NzWGQouUfgAVBASLYEGuvCwqPgz38eEQA','user','ak_1c4feaf3ae449ef9','2023-04-19 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$9JWoR8VXUMe7kE0zUYHosBraTxKI/f9sfRBayXUgNI5ek4vOGXYuQ','admin','ak_12618040e758753e','2023-09-22 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$EfmG2P7A5ZqV.usLw8iMhsQcLXI.FkqgmSX6845Zd5GSaJ5939ib0','admin','ak_1af7c30e528182d9','2023-05-28 10:01:00',NULL);

