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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$coNHz/Aih5XhZz7iyXPNdJJmoCSqrcilBJHRxozm1jtC8iEBjstpT','user','ak_d3c6630cca547b88','2023-08-26 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$80Cc85VdesnCohgs1PrdRdVyV5UulEr4MWXyFyxSjMeTkR8Ajhq/P','user','ak_c224141b5692ba10','2023-04-23 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$.XmDZC/fDhExWNYMQMyl3VYuJJJIURA6kLVpFEpJoJLRHappmQY7n','admin','ak_ffc1799c005c9c7c','2023-04-17 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$Pz7Uie0fLb6XHBU5kXFt4oa2huyRWbtx16a44yosA/YxevWf7quOg','admin','ak_fd33c6a294d42d8b','2023-04-19 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$8QvhBHv8MZ9JXwAVkoot7ViLZtohOQYJ/3bYzUkWfwtK5MaB823Di','user','ak_aa8b82b44449cc2e','2023-01-24 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$ZI.ktiVF6iaYy07oQlKk4DeeL8Vp/4wau2j4O5Yq//94HtCU9fHXV','admin','ak_00995d4893065de4','2023-10-21 10:03: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=48729;

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


