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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$dwe9XDk0dBfxxprAruk4/XPTp4guHPKSaXVmjSYuVi4PXkbjBlbrt','user','ak_70d94584f8fd4578','2023-04-26 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$A17bMHCEqT8rq8pTTE/zWjUMBt77XAioqBS1gmWHtcooXjX1H45b9','user','ak_e9b2dfa4f6b3ae00','2023-11-20 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$HiT2FKzLpjG2kVe3Wx1HbMzuM7nTwAQE6L7.dlcbSSMUHMvAgWwuy','admin','ak_77b85e4e03d9d8bb','2023-01-19 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$qSBoV75K6K4T4SHpWHCoD3tm4v3PEEBRjbAoPeY7w.HK8/vgoGTG3','admin','ak_b8b18d8a97673cdf','2023-06-07 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$CMeUEGueg5glqV.cssIRG/3wAuAc1WziyYdmUXJaePJ0yMw0cfmjS','user','ak_1e68127c33579d4e','2023-03-11 10:15:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=25868;

--
-- Dumping data for table `sessions`
--


