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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$CbZSNiJLR4EWrhIpYqy08XOwatI7QqvDE.HjtFPhUNcT7UKiRji25','user','ak_8066dfab091ea426','2023-10-28 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Oqbr6iwVJkgcw6lL/TYjljNkEng1ZubFFDZ1mL5LwROBJLc4aDd82','user','ak_72081c2379d0672a','2023-10-02 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$xL4Tj4JVwAmToK7NRQ3SYvcL52ea0QSK6tKRz5zVrhH1e2eP/aj68','user','ak_07726855f581d687','2023-06-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$7jqmmtqcZZIOMirGU9xlxbvyJYyUp1g2rkMWBAyJ0aVOgfonMNjYS','user','ak_db28ef9271878a4a','2023-06-13 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$2T2TDMiVG8sEsTTXnPq0hczBgxLJbWrw1N0M8nyL3K.IkLzWa7gWC','admin','ak_efc49baec794fa80','2023-08-01 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$QApm4A5v/AvUzwx4Y7WOeX1hKieITmpD3RwC.LXGgLKeZkeG.AYUn','user','ak_61712082541997fd','2023-12-15 10:20:00',NULL);

