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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$sIeKqEE34Pb7NwG9Up/XKRmkTlqfEHRsZCMx/mF/7Kbkw9LvKDw.n','user','ak_1bc5090f68ad5cfa','2023-04-01 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$ZLtPW6NcDbIujoYLr8B9Nq6H1.GNRC/ZJmSYeRDV6bXJN14YXVwOe','user','ak_661431e76bce9648','2023-12-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$3Dnbdjo3OodxzhH5XiQnwf9eihj5Bi5eLRHQR91Y1YRtKfU78u0u2','user','ak_6f4bb5e57eb551b0','2023-07-17 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$uJv.gWDE2dVqV2QcErP6CK5og0x5n7M0FWwDbPcigOmNNox39bKzu','user','ak_667d106d4d4e2a41','2023-06-26 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$Vpe2bpIQawkGRkbMLpTBduUSLMzAfHlKXeWEfCne7DxgfveBbnt.T','user','ak_19e794d55d11e1f1','2023-01-20 10:10: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=1913;

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


