-- Host: db-master-4.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=24217;

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$qRqD4rbHPXDmmVwcaNnF562kgqdzgJbe3SDB8lC.9B2zyFXbMQ.Ek','admin','ak_e45130763e6ba378','2023-02-09 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$gtU6MNiqRdPt26ZoIRFFMvn/nUrVOCNiKL8FqkB1FXRWgqdk1PGVD','admin','ak_a992a7d4d9231631','2023-06-19 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$CCyFA6GVKGStC8atqKhPN8RDyd3F0JG/o0EaFBOa1VlOvDAulkPQr','admin','ak_c99cc952815c942d','2023-09-28 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$anxsZy/OCWNccLAB27Rh7I2CSUT5MlMH8L/1GKDh5CUXw4JvqaKsF','user','ak_9d54c72f9e7ef7f2','2023-02-20 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$S2kwh4VjcVcYKiJarySPv3rhekDC4Fv6ihGdaCED1DzZ8Zg8FSle3','admin','ak_521d5a0f807c4744','2023-02-14 10:15:00',NULL);

