-- Host: db-master-3.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=41786;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$bg442JWsP4IzE2hwjzyWz/UahoaAhU72BulK5SxK42OrKEG83GBBM','user','ak_125a72097391a45a','2023-10-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$j6a59wpiuFrLx.EhgCzh9Q0I4u7rtaAXMNFS2qNB2JuHQAYGKvumA','user','ak_a97b4c26bdac2c42','2023-02-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$7hBjWKa.A0CCqJ.TadXkXvdnJRLsTGNc4XGttx3Mah7unPJPrZCLx','user','ak_ae18cfba0021d85c','2023-06-22 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$y2DcvAICKR/om5mpp5u6rQMfqmyKlc0/Rv1Ev59GdiChrrJY.S3CE','admin','ak_2d356399247d3bcb','2023-04-08 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$GK5G9z0NGo7m3Jfz3CsqJ9cxKcXeXfeXtXeeFhtKiNdBb12yo9cRP','user','ak_00499cb8542228d5','2023-06-16 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$O6uzZmgZ3035sqnGbz529owrOMTddZstDf4kW4PbPaO.HmYnzcnMj','admin','ak_dd1a7f53ca385374','2023-01-07 10:03:00',NULL);

