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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$YzKQb33iwAHVjtfNGZw9sAOmAZadT5vdFPM1dQnMA/OzaeMVZA4rr','user','ak_a2cd311fca836567','2023-11-27 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$8sJDfBefiUyp8NVZJol5uiTEGG.seKf.5EB9zoPTtp2XDK8LZsjuV','user','ak_0c298a2688c1244d','2023-09-13 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$mO7ZFMfSGH.bzKMh3zzJvJ9qls9V5X2M4E5f58c.tRPfdnDrL1C9P','user','ak_47ec09aa12d58c78','2023-10-03 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$vRFD7KHuQWKRTXsJnAhxeM.9A5.FeB.Przyg0LdHM1sUluc9YYp9G','user','ak_230127394a9e3c82','2023-09-24 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$BYaFwuet3N7kw6WD4J9BkpKqXBx4/O34hCCZCONIVhMZ4PqyHz3eD','user','ak_10498bc713161957','2023-07-20 10:01: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=15863;

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


