-- Host: db-master-3.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=7311;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$xZvGv2/z/EWKfH7E6y8J8MjRaMjGCkntGESmNPRnf9ec87ccUaiw7','admin','ak_177c2ac443f03a5a','2023-01-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$yO0Omdkc8tL5TBqDFizQrPUTXx8tAXHZ8AJHbdcv8ZVken1ctMj7S','user','ak_febf7498b1afecdb','2023-08-26 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$s8mU/KLpQboOogKwvIOxjFNEg0sYdEst3R9ZwWZoW.KZbYPE0K/ez','user','ak_fea880db3ecd978c','2023-01-10 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$iRjqjOftnp640W06hJaxC3RpSYOdpb17v7Q0zt/KFjuG5GDJ5zhJ7','user','ak_f1898458809a3970','2023-01-13 10:20: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=4963;

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


