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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$NS8m/Sw.UFbuZu2bIu0Mn8r8xSqIdHHWdpTTKFFiOVldGa0.rXO6M','user','ak_6b1ff48ade278eaa','2023-03-28 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$CxMeV84/5D.D0q7/TtSLkDy6JYXFaP.f3XeSddZhqdpKNHE2XYE/h','user','ak_12e261109d8ffa2d','2023-09-03 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Q6yV4GJ/Vu507E4gE0J/YSuY/fGoikT80Xz4/h/DHiXH6cwM77YTu','user','ak_0cf492f44fecc7bf','2023-03-23 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$gQMFvXWUHIfJXA6KVJK.AN8CyF20ogFoRdgPauDxZa0XJ//9eetvt','user','ak_f9efd513697af7c7','2023-01-07 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$zflwYeDdXyw3A0tYSPmbmQZ1X86/jMZeSB3FOoqmAPomZkvsl4R1T','admin','ak_865dcbea3d841f8c','2023-05-08 10:23:00',NULL);

