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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$c5SuJCPC6KfuU8bVWBZlV2h3qkkoX4trApsQW5OurrWqmawvOlz6.','admin','ak_be5e141c0491225b','2023-09-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$AQMNUNQhanhV7Bg4KGVCESmdIv/3dxsBn823n8IpHsPwbWCWuVC5j','admin','ak_2722f8570daa4afe','2023-11-11 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$FHm75yB4DwGVuwywbtflhDUb0joVWO1qHgmaQzD0FwDQCjAk8Owmu','user','ak_72a438c84723359c','2023-10-11 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$UCYNA7hLmIWDrkdRUh.g8klvVKtNgQGOgUnY.9GHCNoXdbIMGG5Y1','admin','ak_4a04056e0fc508a8','2023-09-09 10:03: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=33869;

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


