-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ybjnMG1pjuLS0EJ9fN0Z2X7Mfu0xzfxxIHXUWps8kYfUMIaL4kyo8','user','ak_26743a2b3aab8988','2023-04-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$Qyovdz1JmVtnfDbGy54ATuXWaG/cQmW6GvpxSoZ7twuUlJ4fT77Ko','admin','ak_b6cdca21ebbe579b','2023-10-02 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$mYJCO3aWQW9tv90GC0fEvNVYk/uauOYknJElDCcv0uM7jm76cu.n9','user','ak_72a820b6f3e196c4','2023-01-22 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$Xeo6jHCf0/Pxj17L8CtSxXs/z9s5BH7haqtgBodkQkPl7R1bWONtS','user','ak_ae79a88a806365e6','2023-01-08 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$vE3oWh.1mnBOq8o50DSQpnzlXNgecTo3BgDrGlR1K6duBPZcNj2Sa','user','ak_e3d66dd07cbcd003','2023-10-20 10:17: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=15046;

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


