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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$5CpZ15ve9TR5AEjNBh7RvGqnrbmUUSQMklHP49jlntl0h6gZ9E3FX','user','ak_ad13afdfd3427a1a','2023-11-08 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$mA.ZRjadhdQ9SKM6PH1kydbAXfQg78DNqZCaw2X22mTp5rEi5WU/M','user','ak_15840cac3387aa85','2023-07-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$096rmRrFoQZw3T/d4jAwoD0oj0kAZyZrThdVvrUdUcYjHeGJLSVbF','user','ak_40a342f008e7130d','2023-11-02 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$pQWTfX4MlQhJmm.G0huEsvlxpG8rNbs/lLd1FbtDBACAOECHVnAUv','admin','ak_4cd0344d5b8fc6b2','2023-08-09 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$WlePh/d6bEfb6/hXEzR./5xj3rSyXpc9mBiS.FcAVjxHL8BZz9JYL','user','ak_6e030cf354e19f0f','2023-06-27 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$4YR6omLZvyu0bqs2m2HUHOlG1/6pypUCIyW0gH0HRs/q8cHhd2fWi','user','ak_ec10eaca7a0199d0','2023-10-12 10:18:00',NULL);

