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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$3j/HE7SBReC/UZufGBUWiqIMChGOMenIOjjQp3/Nfz8OrIBGuBnAU','user','ak_7da110b94892930f','2023-12-15 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$nXqP3dDH6CCHfyxaXD04r5q.3XGPaHjHnx7fDpsan18nF2YHJ3sIE','user','ak_e0fd227aff67e9c8','2023-04-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$voB3wU2znDk5xCOn7OEs0FZdghsL/R1QtU8fjF/OJLtqoIpdZ/15b','user','ak_177c81167f8aa46a','2023-04-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$E77rlWbE5v3FtoVmBNLiKWi0yyU1hU5lIB/K3Nxtceln5LVGSW1MS','user','ak_6c46437c82c7038f','2023-08-18 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$38CVoVP6B/2KGiZ5MJRZQUNds0u.hQ1CHMn1g01tJKvCehCnz.rVD','admin','ak_f8b0b611ed70873f','2023-06-08 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$cfd3PaOYfyQ21UEVpZyvRR81Gkzzws/tM01b7svHZ.RS/OebzDWzs','admin','ak_c29eaddaf3361add','2023-04-11 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$kTqiHBEFCfMSZpowYoAbiSQmjiQU7iulLc7btGLXHXxAWD27W9Mjn','user','ak_87ab91b9bb5541aa','2023-04-06 10:14:00',NULL);

