-- Host: db-master-1.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=8944;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$wS8G2Cy3lKJNOSi2z.2ipANlyylDCVolyFri6d2pgQybpBir6jrrR','admin','ak_060a5f561aa3752e','2023-11-22 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$KNs/0j512Dj9nv00MxCKTdoCKeHfjxbRD84ol3tq0QO6FBXjbp.Xx','user','ak_38cf752bd02d8815','2023-07-20 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$/jA4C0kWrOT83yhqQr9BXYvJLML.J4N42glz8IG4OxRu69/TOyKfP','user','ak_0aa81d5c0590e8bf','2023-06-19 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$4OJwFXtBFn7zxc9O8zPnNBtlw/lcm5ZCi5woMvZp.wPBxw.WJnFJ5','admin','ak_9f646027bbf8d50b','2023-06-13 10:14:00',NULL);

