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

--
-- Dumping data for table `payments`
--


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Bw44NADRzrLhmm6fLYrfuVdovF8pTi8NUra/a/mkN6rN.5Q3J81.3','admin','ak_5869a4b5667c5669','2023-12-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$KrUHi.NS/giWOgI0AkhCy88TMK5z5iioBmZriiz.fzeqygceKuT6r','user','ak_91bda8299b4582a0','2023-07-06 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$qwlfwjgMKf4/kbWYvwL1Kw9VgIT5m5PCIHsTIXE8E2GAtzqLBrmKg','user','ak_0c92ddb24418c467','2023-10-27 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$WoB6s4SYrPr3cD/.zezg4qVXtD6zP2rTKIJyPGL7VzivlsAMg8tew','user','ak_8acbbc152863d00f','2023-05-02 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$bZbGReDkl5WKLglp0DYEATRgf7YviG569QgNnRxq5CBP1KTjnPYCv','user','ak_dc932a7a716f18a0','2023-10-11 10:20:00',NULL);

