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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$MIuUBr2A2NcD/zgqSnlqZEFR6FHV55BKuXIyjbv828s5urfR5LHXD','admin','ak_259a1f13e74eb18a','2023-09-18 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$XtL3PwdRDi.MFM56EX93vr6qUwBP2tK3xyCR5CAoMB8Jhud2EKygn','admin','ak_9dc5b565920f0828','2023-09-09 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$fF.J8Lwu6.3l2I9YyttS4REISwIcGlTYhLRdvR1iw54.R/il0KUly','user','ak_47bbf8c3e4f78f5c','2023-02-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$XxfwRJ.qfei3Y8WHUduWDxSFe3xqGFhRq7raP9AsZp1ZeJu3peNWg','user','ak_c2fc9c0cecc3dcec','2023-10-08 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$cjbnQ1QaoFIXcCLbA1mJJ9XO9hd8gYmquigB6LvMdbcThvszPnLE2','user','ak_54ebe15600ba3bc6','2023-04-06 10:04: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=18160;

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

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


