-- Host: db-master-6.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=32427;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$FnxLCOalmDPyGco/5AR4EKMS7c7ICaSW983eBn8cinubneX3/c5k4','admin','ak_9744360baa0f389f','2023-09-12 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$KtWVCf9.YAXDbcYk/tE6YPEiMfEvyoyD1tyMTEpKN7kafwm9ZenH6','admin','ak_011932e316ae0778','2023-09-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$/YMVDNRkXne55K5qh.2nnuNOgo/ipDFF5A7mznFk/7G2AZDfaWPfm','user','ak_2505b5976c6feb7a','2023-11-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$VUzM/4VY/hATxyh3l42bKNNEuX4B8lvUbYPeI/n1bXLj5qRbs4JO/','admin','ak_e072dd0fb2e0918e','2023-02-08 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$FY6kiBEs7A5HPdwxfXQ4apDY.NbNb6STatAaIdOhfp2mRhCPk1a/2','user','ak_e97541ed34d96d4e','2023-11-18 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$bP78aiIjAMVL5fEMIsQlr/UpCEtrcHcVWPYkUDKZPrXcLrTGwfBoC','admin','ak_6038c312cd5c961a','2023-10-25 10:20:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=23554;

--
-- Dumping data for table `orders`
--


