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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$/Qdxc6YB1807gtPmKDG3d2iNIXxUV53Hzbucr.KxO8WVfDw4o7md2','user','ak_2f1820fa2212f1bf','2023-09-28 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$QmZcYJIO4Zt6R2WLzoyqSnlTMS6Wej/3wv8OsBrFyWKWoRimsUE8q','admin','ak_22a7957821e154ba','2023-05-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$s7QoslG5kRogFRYIn58CqlTcvDdD8dU3UpL7SoN0ErTuYZqoKxuet','user','ak_fd75b521b703da26','2023-09-13 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$vAqzZPadmrRhtd8H4VDV1Ld13HmBwp6eLmpOpQXD/9NAXngueQGf0','admin','ak_079da369611312dd','2023-05-17 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$QBk4V.gXBcMKMD.eP1AteESXNqey0SVTBPCS6nCI4X0ep3Clmy4gL','user','ak_92ddbb1bec3f3a26','2023-07-25 10:19: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=20490;

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

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


