-- Host: db-master-1.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=1388;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$kH3xDuz9A2BJVG7vHM7WrVnFBYB.y63D0GMJSrwdUx.v1g6yl/rzi','admin','ak_a15f85ca6d72c867','2023-06-21 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$XzkSabDfzhHo/f3GwLQ9W0Tukf26swOh4aKpyFe07hAtqMTeyUKMJ','admin','ak_31484ba1ef1b5ea9','2023-03-05 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$PHf.tEaGN.FE34f6V161dQfiwnKUqlOBlZicIi8E5CtEMjJMfXsbC','user','ak_c8c98c0aead6b49e','2023-07-10 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$jLgAvrKzEAcFzNboXw2jaPZqDDVWQoUNhaVMikx.DJZ/8q1Z8PVFR','user','ak_a589ce35b7c6daaf','2023-11-26 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$96PiDBA307e6kdr2SCMztbB6VoxkeNYfllhOzXKBFPK1PFQmkqGHl','admin','ak_51f75d5b694e8e78','2023-08-16 10:03:00',NULL);

