-- Host: db-master-2.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=16084;

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$oR4PgO8.w/CFYALHC/8CLMqjU7Gt1auhcpuBnXrDYkF/JGM4sNbkf','user','ak_29c0145990685d65','2023-10-26 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$oSFabQ1cKpGhkKINzG0m/QhXAWy/wUIjmbMYmU1A0S6/2BrjXrdGl','admin','ak_c121a73d227ae268','2023-03-09 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$KB6s.dMbLR22Ip67C8kkmv44guzsuRpzzdFPad61IKRxOKlTW3JBp','admin','ak_df592cb7b70bd3c3','2023-11-09 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$XzhLbkzOSZEnl2y6eUdm3fHBYqcgoZZMthKrDxcmEx/QwcdyZyDYh','admin','ak_ce85a28c1eba65e7','2023-03-04 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$FrK4zJp3Vlj48vqo72sxFhEHwKmKAuu1LKHfmaf3hyTDP.fP0EsJu','user','ak_670b94708868303c','2023-04-26 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$atdqWxI00qkDA1QIyHUjvAuclXcXoJGmicVyHfKkydPit2nZCkpsf','user','ak_1f365981cb5b13f0','2023-09-09 10:06: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=17300;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=44637;

--
-- Dumping data for table `sessions`
--


