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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$vdHASSkE/gpLbgBaD1Sz/IxTQx8FhhIsHHymbjJROOxjvSiFxzcAe','user','ak_cea5ba60f805c6aa','2023-11-26 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$iElNbcPMcDSaaJdSBltCo.ujzxW.hh5Q.jYK9Ptu6ccW7TEQJClaD','user','ak_3064898aeca74214','2023-03-05 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$a0kHIZlhkH/CWtbfmxfFz9gqXOJ6g9vqXARQQNZ4wlLrA3YmUS78T','user','ak_2cf94490deb1612b','2023-02-27 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$3ZE9HnVXRc0e3Xk.80JMU8MjuNwTW/3VJZ3jEhAkvRxulsh9XUHyx','admin','ak_ea762f29caef4211','2023-06-18 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$cd6WDH6Wzr/4MCKIhN40Agw8u3eYYsLZsDyCCIcrEcwBim0k6yN26','admin','ak_c2b17a1f8d305fa6','2023-05-05 10:17:00',NULL);

