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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$3Sm0R1XSYOY4Kd4DcgB.YocRcGjRvJkZj1Lp.yYsRpS/Drn301qdW','user','ak_948f2b02386b4cbd','2023-10-20 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$mIdwQMDbHb0rsWm6s81QYO/zstIdZUG8coalQchZ.loyY6z0jwRjJ','user','ak_5e269347cb34e897','2023-07-26 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$8v.Ee8EEi5RmGMYmmneTNsIMj5JkXN6s/Vbk8UBE9F28rNL8MynUZ','user','ak_a019132dd73c9572','2023-10-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$jtINizoegyzMQShdXRPmHrdBsX8RyDVeY1xa8b5IUMaMCmtbHBHAf','user','ak_e0a8978fbb61ce71','2023-01-18 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$oD6geH7AG5Cx0XxYoeiDHoqfMbX/aVuYV0E9A4Bsik9upG4xzs3XJ','admin','ak_f6cf6204fc7fe007','2023-01-11 10:14: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=32823;

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

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


