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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$JVXV3iZsVjYI5W0mNyKR/htw/OqGhNeMQqDVWgHKHV20JyypxBN6c','user','ak_c581692f79647845','2023-10-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$tcm4qRLNyISb50p7/49uGrYLVmtgT0ZcFX1Es1sK8XzdKcubxpRWR','admin','ak_38945b011cf5b3af','2023-01-15 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$n4sTjdo3/NZNSVyz3h40lwOrw17yo33ioArSIyxZeyc.fNERwFRQr','user','ak_5b3d739c0f6d35ac','2023-11-05 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$LefsgkjO/oHjRQxhaXMQFT.Fp8APS.5oEm3wXTwLFgdYqKXhvvAY7','user','ak_09507ce9542e1571','2023-01-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$swkMc90jAmnYBF0G4kovNuAAGDz94t18E.k1TVCengNUxnN28oWSQ','user','ak_51d00898a11327be','2023-05-22 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$XZIrKjMr9fo1e9XI3mXxXWM/Tw5X17Xwynm0//fTRaVmnBs3HfwTc','user','ak_349ae4e0a1979bf9','2023-10-09 10:20: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=27750;

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

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


