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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$7fAFx4gqDtAk9m1z0NE.v9QFNjNlP8bmmlgKBbgo1258dD.3nxq6/','user','ak_5d35c1b1e59da086','2023-10-02 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$EUkYwsBbFkaa69SwRXWawM8ciGPx17Z6aqfrM.OINCgLRChZoubul','user','ak_661f8a21ffb09f07','2023-11-08 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$rLHAwUfH95m4vbOBNSMFH5Ovt97lss5ONtjhwBW/kFCGTdRXv09Jp','user','ak_4cd75de739568f72','2023-09-07 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$kZRY0KFI4uhMKglCUzmaWL/mxHfhQg0n1MFx59YDZNev6lnDlsrCJ','admin','ak_0932826946d4cdbd','2023-10-20 10:15:00',NULL);

