-- Host: db-master-4.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=39898;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$F2VYkEoL6FTTmJ85//v5C1WBqzcssYlSRv2V83sOOT0yMQbe72H3w','user','ak_f23bd648cbae5454','2023-01-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$f9c5eYrkt7tHx9GvbMGsRNJD4.I3w0f6HJDSVmSp01R5HAZX/rptd','user','ak_abae212db8099831','2023-06-08 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$brwcf6O8Qz8lncIn.6CK7TqeOGCNbA8jYSgZ8YJlkVmwhs16lEg9k','admin','ak_d90ca82f29c4fcd3','2023-10-09 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$WZCNchyKNfRkAQSxs.6KTNUOgoSTQ/KjNnWRVNt7oUhNADRHTJ73K','admin','ak_d27baa05b8666c15','2023-04-19 10:05: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=18016;

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


