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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$lDyhwY89lNMVGWwKzgfUbIJ.prwH/GtLxvIwREnU3LJuNOas6CTus','user','ak_f8d415bf60a37e19','2023-08-15 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$wO6mxlDtCbD0C2yK9mcxKARp21rVL/O2nD6MMP4faLdBaRyRTdlGb','user','ak_0590891bdafd543f','2023-04-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$JY9CI5M2UFXEfQEzYniCR59tVLCSV7Z/4DgSor/RZ4lFeJVHOiFL.','admin','ak_a798dde8d69c6370','2023-03-23 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$HGnJDz6iaQkJA4WyGHEUWV5Kqw9APtq/2csTF.VtIFqrv8PGmT.Qk','user','ak_2e338d65cbfa0f3d','2023-10-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$S40lkSqryxOryEd8uZE83HCP6538svt74tONIaVQ6T.wLWl5vqVIK','admin','ak_b4206d438a9bedc7','2023-04-05 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$VB5BRhr/RUra9XRidPk2uhjidDVKcxgKLXatkXjcie65oe71Xe0Vs','user','ak_e75c518eac9ed3b2','2023-01-16 10:08: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=41521;

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


