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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$5eN6Z1M/GwVye6QRMpzyhdd3ysbWjNzlEhjqxAbfhvO94KJmZDUtz','user','ak_191f724169fb312e','2023-08-04 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$n2N4fq31cS5c89PADWdmh9dcyF6OF3eooC9ZaV3cB0f8h0.G7ZYr4','admin','ak_6cb10d3f6df43ec0','2023-08-16 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$K8vruAiaCXC4a09sqAtxScdBB1Wackr7nTto7NamdjTsMHOgo0NKs','admin','ak_0bc7e0ad232994f8','2023-04-28 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$UaZaXjQQmTiG/teH4VLNz5uJcBjS4hqrW.d2DI.jB8Ks860CSC4nm','admin','ak_f6cb372601c33402','2023-09-21 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$84ij8bZRRahq/SI4DM/RS0ZBrrDaP/XUN9kbzw.m2g.L.yJQr4TRc','user','ak_e010b1be1d34b4af','2023-03-25 10:19: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=13760;

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

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


