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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$tODvvqcTVPEity3pezqL4UoumhchV8LJfS9H3ODP46x4NSwKpYS5h','user','ak_8f4dd37425918819','2023-05-16 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$EflEaDW5ICKCmBLIaYvTPTHXhqhQSJ3yaxe2jUfPRXHhTNKZPNapA','admin','ak_e84b1e6b530c1199','2023-10-17 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$cNE7JNe7dPKhyvUn4QYn.ePkG6B5W3Dd5H5.gVO5cng5qrwR58A0y','admin','ak_9eac859c5ecf15b3','2023-04-18 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$ysGvcBUQk/AWkeqIYGlLAAFUB7xOHvIIMKTWDfi.5J9aTfgCR6dXH','admin','ak_f8d1ce7165f841e5','2023-06-10 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$q.J7x5lT2/mgyUXem35GS9L6HCr8UnEX1MC/ZRQAhY3r5jeeAYEwZ','admin','ak_1772a1d3469fa652','2023-12-24 10:03:00',NULL);

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

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


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

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


