-- Host: db-master-4.internal    Database: main_app


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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$T.Lco.iuibuMlFT45.NIVQ2FtUjUyQpXCx0esfQEo2F2Pi5y2UIl3','user','ak_7dc25f84264184c3','2023-08-06 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$aw/QbrEGQozigP0z3sXUDczdGVBZWSRCwqCOVpGhoReDqRtef0OPg','user','ak_a9247b1ff9072664','2023-03-27 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$oLTGy3tbNoVfz/7QUa3/XuUPQ8iL7qsPEYkFBsuuguQZFBFxSwhO8','user','ak_0718c21f57fc7f74','2023-04-03 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$rDdRO/LWboUSkgLEA04LqxZjP.FhMiV85zyeAUh.5ti8544oXX28a','user','ak_a2db6f7295ba6ad9','2023-05-12 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$qf.mq6QPnVahnxKU95st.Eln/.0p4Pkol5Joj6dnS/rCanoBXVws5','user','ak_88588eb56b9a49af','2023-10-28 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$GQLhLtl5qcJYlfVGXGv7HafSKJn3OpB5szexka2jYbNR4IUunl7kX','admin','ak_0205904d20a3899d','2023-04-03 10:00:00',NULL);

