-- Host: db-master-0.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=2337;

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$sGc7hxzX0GsZA.q3eokrqfJTsluJTDodgr5/hoJ2hbQzUpwNgT8ju','user','ak_bc30410d6f8580d9','2023-06-22 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$jdQjhgeM5iyXLCrXu736GnacNF6xWgP3FVqRwKnGOxEezmogfldhH','user','ak_479900491d56fde2','2023-07-22 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$J.D2znHatIk76qTvsH8tRZELNQlkngcpXuh8lqpUPrtCwh4XF/m2B','admin','ak_74fa4f1368205112','2023-10-13 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$eqBHfURQIFdLsqecpAd36WPLzhgoBDecff9z9p/rr.Oksl2HBL2Gu','user','ak_d790b3d9ac948d6a','2023-05-03 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$VUyRfNs5KpRx5pxBJAPBvw5xFsSjCMcVM1Jnt.9A4C9sG/3F8oR88','user','ak_6b5ab5c38821a5bf','2023-12-22 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$cadwZldUFyUOjxWhs7G6Fpf7F7n41Vj7qV2DDxx1nMDYePRdebOcO','user','ak_738d729c59d70e5c','2023-04-10 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$kP1hyCuYQZWZRzrlThvVxj0.9xK4SWJO5fGoKdVn0GtyNVaGcWLTm','user','ak_3e31398299afb346','2023-07-17 10:12:00',NULL);

