-- Host: db-master-8.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$TOwfEgpLd/MTki4.0XXWLnQC1PWSJH8IPFMu9446kKGGzcmakFsKd','user','ak_420a0fc79e680881','2023-12-18 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$iL2ZUhpJtLw28Mbn9YlQ0IlUTv2vVBWResagttIkVnyGJyTUQu2wB','user','ak_b9602a5768bab0b8','2023-06-05 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$/tjir71Lxl6jks/ulGAG8kqNvDCYBAlsDEgpg3pw5Oi9i6ZICp8c1','user','ak_1b1c9392cba4193b','2023-05-09 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$YqlzcRAZslzqeqaJvxCPrnLvlr8SKAJCg2suemWNVwuTQHwIRfsb3','user','ak_05784119b0729c97','2023-12-24 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$FAJZzuA58G3yq0jxGv/hhEdBedLtOXQzlopMMLecW1iJtBfc1KVYU','user','ak_99639cd9af1520a5','2023-05-27 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$zdrkyfZNFFTpZSa7QatvTV8dcE71GE5vDrvnsvDw1T5cxRfWYCYW5','user','ak_b7e7eb4bba37e2c6','2023-03-26 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'root@corp.net','$2b$12$cb/GqEQB1wc6YcRgTqZ/9v2pPDDyKPsDZW0IxR7MgRpDLL3gaaYkt','admin','ak_0695aa8c71b6cd84','2023-05-02 10:07:00',NULL);

