-- Host: db-master-5.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=32692;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$rkAP1NTtrW4.tW90TqE6p3sXs3eclMQs7c6NvlCWZDJZf9R.KYByB','admin','ak_c3d09752eeffc7bc','2023-04-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$ONu.Z72JUlm..P00kx1UO.Xfo6fSKuxQnteZ9e6kHNpIsYT/HNC/n','user','ak_d2b7d55f80bc84ac','2023-07-13 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$HjJH21fz4nm62ujmM1shmtMXsQsTuzuG6iAylr9vrnrVLjJt73VBe','user','ak_90215b931fa34bcb','2023-12-07 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$A1jzusfuAz1wHDBlKJTrr5TtDAQY3wqCLbi1R1LBeJsRQqcmOlRkP','admin','ak_aad7797933867a07','2023-12-27 10:12:00',NULL);

