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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$h6gtBnqFpfj90dl7yJ4tZiRoY7nqfed4fQVqIucN/EVhSH6fiPOES','user','ak_72dfbab711d33670','2023-06-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$36db1qa0RNPWbD0A8TX0pSvMnWfRGtaU3ZVlkMdJEBixn.EqFgktm','user','ak_90f3cd41a2678cd7','2023-02-26 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Lt2weEL4rwHFIabI6hHWCReQqKPgAslj2dGdvIVxnD764wKwooenP','user','ak_85d37967e5fec242','2023-01-20 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$CdE0W6FoaHTRRut4Y7k5/47JJnv6KwUM7AK/Rayb98pUzK68nGYvC','admin','ak_82b3eb0a9870d2e7','2023-05-22 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$SBm8yLsYXJkbgTW3afF3yp4XdRlYjLzaL7YyShx3TyduihgF0LmPs','user','ak_f6704fdd236b0743','2023-08-03 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$pGy6Bn9znLtDy1z9KWQLWGZ.ElHyUQIH.y/G2Y5E51V/XZZSDtD88','user','ak_97d7a5edc9601972','2023-04-11 10:10:00',NULL);

