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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$z2GxdgNDweNIAE9h/95hUTslzkWJ.FOYVNWvoa3m42uglyXg07GNd','admin','ak_6284f4b435d08a4c','2023-05-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$f4x7jPpDzk3anjt8cutd/1QeePSPhWa688hcisg6b.T/UxIJzPYLh','admin','ak_73d41e50f93060a7','2023-01-19 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$d4yn8q8iXvo5bq7qVHPImervaYPwVFFTqDgj4v09BsiMoXQrEJyRj','admin','ak_d1cdf2f59ca2d738','2023-01-01 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$cbuskDXPUt29VqEhcSUOXh0luvyAg/T6kNkFw6TOFfQjou8C2SdI7','admin','ak_0488ee6780ca2443','2023-10-08 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$y4SGOe70inysrvL/XJSLJa.ctc9bNPTYbBG5lwf3UcurlTVAp.iPQ','user','ak_4eb6467248a5ded8','2023-11-08 10:22: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=8160;

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

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


