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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$W/GASODHaRXMyeI.Vn1Ll2bNGUSk6eL3GcmIJjiPXHUV1KxTcHRp1','admin','ak_b6206d88933e5717','2023-07-21 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$oGTUYbkf7EN1.GtZkSjUfs3xcmThhNeZvRmZlhcW3qLXGsP/HN6X.','admin','ak_0974095547813596','2023-09-15 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$3Ies1y1Ff1Q3.Qy.MMoqgKMG0/0tcEbC4VV2O2cCZfTazjwo3zq8C','user','ak_295da1fedaaf289e','2023-02-04 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$9rHBv6q3AA5sK71YLQ0n.581g4ErhTpp/aiayj../.lgcKcXjwUUh','user','ak_aac6ac6d839e72d6','2023-01-04 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Nn4uX8.1rbJkGXxIBtwq8kTn2SXR8evabvEbqUuQ2M8xL6TsF9WrA','user','ak_5e75b1b2ee2a311a','2023-10-21 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$J6Ss1CGPDw9CIPdvzEg7aPG355uvD6BxzvH14L8TxGVXo5ApCSiMZ','user','ak_7a9fe4c5f8965400','2023-10-02 10:02: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=34649;

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


