-- Host: db-master-2.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$LSkKfEsatXboH2sEsWdNY9Z4uMd0GEfnU4yl4R.QdjC8IG8lMD/oG','user','ak_b09d32d6df1f28e0','2023-09-21 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$54nGorWKseM5Ynge.P9Wzom2ltWLPC6xlSlI5azkx0eCLQ9wx1Zqh','user','ak_2b0d4b2631011784','2023-11-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$yxsDTAvRy5uYCxZHdewj4t4QxTwk9gl4sTgDNdn88ukfPtxCcSmE4','user','ak_890280e6ec8794ba','2023-12-03 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$0K0Jir6F73LAcKUXPWBQ33P9RTk7HjUG5oIscsk8GPL2wInTjkNA3','user','ak_2f7898bd77528fbd','2023-12-10 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$CIkZ0HPlYpobtnBEyBx7EqI8YwR4nji15N32BI8JkSMl.6iW2D5uA','user','ak_dddd5a10dfb1b29f','2023-04-01 10:04:00',NULL);

