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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$5NndlUjs5ZknRVE2FUnH1BIvAykSuY7A5/h/hadrD9xw0yu73wACJ','user','ak_fc512c868000d16f','2023-06-17 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$qNhhMGh4Fw.Xj.WUzGN0DZ7QqBmmjvnNADdowCWMYJobPxeN9n8tK','user','ak_a2b9dc7128126daf','2023-05-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$.SKOkwLuwRoefbOu68wDhpZAbh9BiC7FN9KupC6hZkUvUjf2I92gC','admin','ak_3c257a8680d0eda2','2023-06-03 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$XpDv25/PO2.L42dx7VTu3Ferp3jcOPm1N6hWqGFy5bMQIvEyfcQUF','user','ak_7a5bfaaea95eb1c7','2023-11-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$H8yb.3873JCIRWmJLz4qeH9SyutCICiIO2hsqwj6tGZTVjg3HfGuR','user','ak_c9c08dbb81a1152c','2023-12-06 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$PSu6AZLATIoQ0Lm78z1aYmdfJSvXXa/k5Ax1uBagEwRDtX4N979gn','user','ak_a460d2f5b224ee40','2023-07-16 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@corp.net','$2b$12$QGBfbMHOa6kNbIXdvCC/uHGU5KEZB2EmpBKnxiLg015uqhhi6E3u9','user','ak_a548952a707e6784','2023-06-28 10:17:00',NULL);

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

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

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


