-- Host: db-master-2.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=2936;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$cfVWlB9Z6M3ljOKlbTNX/cXH2MmCVDOqA3B4h2OmxjCSjWoS3G.tC','admin','ak_30ea3162b69b5405','2023-07-11 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$V0KkzOH.MqF0WWak8IcdsKwY0Djf/r46hoveEri8Yg2EQGhIZ0Hts','user','ak_d7a1c54762e723f3','2023-11-18 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$YcM85uq3RIEZVPvj1KuHZYV9xi8b023yzU2VP35HVIRg1Y59Trvzu','user','ak_6c07854e47670452','2023-02-15 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$hd6a5VvzILHuuOkb5Cfa8Mp8gS1qdy08saYLFVL/XStSbvMYifQrd','user','ak_fad346facfcf350e','2023-06-04 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$Ylwwm2GjiwFqNsowonTniYYgLLgQRulRvBiI48AfVG4qSJU.NhyDm','user','ak_46a7fe5ff060a12c','2023-01-07 10:18:00',NULL);

