-- Host: db-master-9.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=38182;

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$lTPDhMkPT.BV8MY/9nJwXqR8b1.cnmpCn42BSD/3as1LBaSIzpg/l','user','ak_e7ba7d643d403174','2023-10-21 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$SaqJK2y4ZNZxSmbzxCsJVtlIkfgbRKGutkauRxKmmfnw2RyquYkSU','user','ak_41f98eacd6bad611','2023-05-11 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$Iqu0fAPPquMXznyL8iO0loM4TWwzhgxnYmd.oM6kzp2O/oRa79urg','admin','ak_9e8b3b81746c032d','2023-11-15 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$kxIPTk4EAeyhGAGrle8ic5fVQV1RMWHSMdfGXMvO5PrnPz7qQkWzD','admin','ak_26550c4b09467e70','2023-05-19 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$HrzlKeK.ETkCIsGaGZPBVs1zAkLpBq9r3HCTnB7QaiJiFLmZJjDmb','user','ak_ad5b4c0cd020a4cd','2023-09-11 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=3767;

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


