-- Host: db-master-5.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=50634;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$r9mapH1pSmM.KhIj8EbTWw3Q3H4bSql00KUappvhrduYJyhkQinFg','user','ak_f6b0cc8e7dafcd84','2023-09-16 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$MguXE3IHeOEpToBH6vvShoOF33xPjreIQbMHOD4MSH8dWI10gmQUS','admin','ak_b8e2893a89e83ae4','2023-07-09 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$LR0mOxhlbwSoqCuYgh7WUe65AEnQTWC6PDGVXmVeysYS7bQn/.8Sr','user','ak_30c39a9e52da84af','2023-01-23 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$RewCywNT4D/bq3.7mG5zuJPAvUc6OKiXEZ08UJQUKCrtRzsgIwksJ','user','ak_7b9f8938bbd16657','2023-01-27 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$UfKv.7raBrh5rw/bVoTvWmxw01W/pA9c7zXOEebcf5SbirRD.xUzr','user','ak_d8ef6c0bc67505a4','2023-10-17 10:10: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=9131;

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


