-- Host: db-master-4.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=22961;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$wIRIGDQLhWpRpg6SYUaYZICe1tEmdsqpCa0Gqo2F/B5Qinqu/Xi3V','user','ak_c77bef2388aa5e4f','2023-06-12 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$TcL11w4Y/8br2eyzwOYQ5tLSCpltyG7H/ZyHS99MlaULGzPN8Xnlt','user','ak_cb14ef035a4c57b4','2023-04-15 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$2J7Mqb8BoLsZo5iucetIUOhQ/RGmBBMpZ2YkDl1y9mKC0OxLJFdX5','user','ak_fa8f277d8640e31d','2023-08-17 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$yE.5QMCnqWuny7DZ/91JMnLs8rU7i/JiA7sFIvq.VvA5SE9C1dVIO','user','ak_f73c8e6221d5b130','2023-11-28 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$cLZMxhVs.ORu55CY34p2ARWqL3J4n8KVYJ/PwE/X1h4wdz0lRmi6v','user','ak_bf26a127beb40751','2023-06-24 10:22:00',NULL);

