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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$Au9V33KzyGl06H9SC/HhXjOMPozTjHFKKhwAuOOJkvG4AF1pKqzut','user','ak_e50e126ffa5a951a','2023-05-22 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$VT/UZsP56qRqpI6adwhGux6KhFrgigdUhXcMw6npD58DYoCuf3o35','user','ak_42558eddaf3567fa','2023-07-05 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$VIP1USydOtcKL7UgDSpF5cI9Fl8PN331jxMg0ATScR4DsJdRFRdtz','user','ak_fd0cfa0ad7ac8214','2023-02-20 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$uST9On/1Wt/LuEbVCBMg69nBpXBWqdJprr5YudmN13zDzbPPcpRd2','user','ak_bb3ff36eef17ab9e','2023-06-15 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$/0kRYR3U95TMAiyoYG3tttQrW3cHmYRCAruO0Qk02Ig9VcjlLebpY','user','ak_7f5aca0bd07f72bc','2023-10-16 10:18:00',NULL);

