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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$ZdWdTirAtuZu2pJlkz/pTQZyk2pmayAdZmryOTqM54Wj0p7VqZLzL','user','ak_4d27fffe2be7d6eb','2023-04-19 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$Amy5Yb0xb6LP7t.LFOHbKJWQSR8CuIJPPmAJaOjpngZUET9.HtZlN','user','ak_d06f98e0bd086bdb','2023-11-19 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$RLG81iZUhGOUrYOBsJPhPi3dsSahOoUP49oWeUraiDK/RUOMumU6S','user','ak_c6545f368e804d1a','2023-12-24 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$Re19HP7vWovrcYfLhVnsirLr84IbNUZyubQwAPb2KCpComBivKUCQ','user','ak_3cbe842e753e3774','2023-12-23 10:13: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=4657;

--
-- Dumping data for table `payments`
--


