-- Host: db-master-6.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$vIaE67MoHuez2InO6n9dyp0f9kmEAR/IMLJOnrMMYtD/zaVFJjZx3','user','ak_ef47a704cf7f3d1c','2023-09-20 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$aqqVWX0XpN94chxrd0N/xFCp8k9GnV4bmbJeg5I2HhqDJpHJxN07l','user','ak_ca26c39d612b0949','2023-11-16 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$33E4Np3qJLLUPJ9SqSgmvWtaqAkTwuL0DmdJPLYSkRVBjBaYEQpKl','user','ak_e5f8041e3c001241','2023-07-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$ZEZFdfR93sJ8YPFflD.ryGBk87GP5lsAL82LLrd8WT8JWv5/tQ3YX','user','ak_3a13fae33f2a3928','2023-02-13 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$9Js2RtYLY2sMspxew4Boz8lBPTtordaTjR/y0dUSIoTVUv6m1nAMY','user','ak_772a05f34a1d9df9','2023-09-24 10:11:00',NULL);

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

--
-- Dumping data for table `payments`
--


