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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$ru9ngnDfGPkyFfXCqqpt2NWH5Pztp8gUHY91MNHY5Q6uO0XvQvQqx','admin','ak_f055b7f5dcc3f405','2023-02-08 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$REUeRtKIPkZk/MgbsduEkOpJSpeoVEwMkX3OXke8w9ProM2FajcCs','user','ak_aaf8a2a0c55d0e27','2023-11-05 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$ema1RGveDKZZ6ywGJoum3cLXmCNuEk8u8RBxNiYtk1biyhmWMiTjC','admin','ak_af2ea8d8abf20d58','2023-08-26 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$tPjuq.5XsRUnNVNnMqEstCAQ/tBKjOH9wBiQ5sZp8vA9nRMUw02UW','admin','ak_d6af74f4deaba539','2023-06-05 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$5Kdlu.tMMxNv.6G8duKmePWjBckLhKp/gWMn.SpB9sWTHgZmkVvyZ','admin','ak_e8024f8e38b56dfb','2023-02-20 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$4txprMrX1D1zmNHjOIp9Sna/YwpKO827fxb.HzB9xlbkws75bBPjg','user','ak_3cafa1136f16c200','2023-04-09 10:23:00',NULL);

