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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$yQzxHBT3tX4yYpsIFMMioh90BojGCmmw4mjozpQICvAIOazrDVQ4z','admin','ak_ae53d01e84af4170','2023-07-24 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$IyPr3giRBhCuNzhDWTqmK0WdkTvHbPQBEM5zEXqBUTG47HNdERmOA','user','ak_2dd99bfa16f0f185','2023-06-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$yJjIpTEJLHyLH25Eq4wnPDrp6Mnf2i8VOHPOdIFo5BArmwStv.jxy','user','ak_d51d1db333772583','2023-04-25 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$w6hNFSubEIXe1WwJxtVrFPS.BEynwH2yBV7J.dl4OZlci/M4t5asY','user','ak_91e268a61a0c7760','2023-12-03 10:01: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=39346;

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


