-- Host: db-master-5.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$aBE4WxSPj3/RzsOcvBP.MOr.Px3uvtxXDwUHu3pQK0YSD/10VgTmX','user','ak_985adc22c5ec3ae4','2023-07-21 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$XL2mllVT.Ae5ePj86Ilp8em8OnrCnEF6ZmdvB8bUbg4LCNr3P4okQ','user','ak_6aa997faabe940fe','2023-06-03 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Erw5ezQp6Cw6wOCTU1pRdlYfSx68HaXMR10PODrUFkaDMxVCDbQvJ','admin','ak_63d6f4359e6ac2f7','2023-12-27 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$nDEvcjurHnoo.pkWEoGmeQ0i.w/6q.SOtkegP6HfvozZaNQynAmZm','user','ak_b4ebf615c58b2c68','2023-12-10 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$Vvu8Jg4FCIWUpq44ZKK01rGNK5.fnrQQCdMUPHYm8A7tWHntTHgv/','user','ak_2457e5eaa0b39e38','2023-02-12 10:00:00',NULL);

