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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$x0oj/9C5wIQAedURUvMCm1bRPIkuvnlMZL/cZ8hWzRUvkTsYFReVx','user','ak_37fe4ab15b104831','2023-05-24 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$ff64M4Ws0nc38IDnb5tdUPIW9eGx6fGIgfAD9Ee/Z5BrBM6bZbU4P','admin','ak_9a794f095968564a','2023-02-23 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$7oTUvpimhg82UQhFkDcspTFaVkRaJDh3h6mmmRegixlwQjPcqLLm0','user','ak_b4a838276b974473','2023-10-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$ON8EANd9m9H1ibYLhsLys.mm40TyRgNizIfatdO5B3.awPC14bcRV','admin','ak_ed3fe07ba9c57fd0','2023-01-25 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$hUWadiiTpYFGfE9afMxYfzk.0tOv6ip6g9VUUrQ1VABkISyY/1mV0','admin','ak_ea4a68a154496c74','2023-06-17 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$fdLG/jqyt2CnK6Vn8x1GnnDehLWZ6TGpXE9ixhfPEDLdZUqs9RTPn','admin','ak_55238ea385877a1b','2023-12-21 10:07:00',NULL);

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

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

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


