-- Host: db-master-2.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=43732;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$IwjvaDFUYa78j7LN1nrmaSZbUTaYMhzvxxn5N2vU6CAa6aZaAZv6V','user','ak_8bc0b6913444cc83','2023-08-14 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$bPbn3Blz1gbsqerY4hKdm7RpaPSY25lc45k7klmNeaY2v6CPr3/Mv','user','ak_9c46d3316eed1d61','2023-10-15 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$jRb5RkEmmrdDLiOIKCtaaBL5q70/XQwZyj2z1q7Bv4.Zm0xHf5K1m','admin','ak_27f06e0f21ea00d6','2023-12-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$ZGh4JGL/cU94vR7tF5vyi5rN0i384II7O4nOpL/33kXJudy8NaJs1','admin','ak_f40a84f395a152a2','2023-02-08 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$MKLmQcx5N3eh0e95YOPd985Rxt3muvEHMFgTrDzyUxXXujby99enS','user','ak_fdbed36822efb434','2023-10-02 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$n.ln8U0kT6o.Wn3b5yplNrtFmk5PUW2Gk5oDC36fSfQT4q52fSiss','user','ak_5b395f5bed48f5d6','2023-02-27 10:22:00',NULL);

