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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$sv9hTPrYLjXXnX3na9cQs/UQRreSE4h04IgTg7WKgtzJ1rGaLEHWy','user','ak_eba37b88d3a84bc8','2023-09-05 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$HPgZj04K9TG.iDWiI66K4ahj.wbq2x7U2..a.BkOI1NrIn1R4F38h','admin','ak_bb6a4cf5a04e0684','2023-04-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$iiVS/1gRsGuznWsADLGdXma9ttmYfuiL1BbLwH7TiBqMvuyI6Ev88','user','ak_7d1c922cc25223af','2023-10-06 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$KIwiNGmKkQQjIdPVwiav9AGQlVpCudS.EXJPBItNpxO9jCy7exere','admin','ak_d1d19eae22015764','2023-08-15 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$n5VMsd/PG9SKrqa3effP.x9oyMWYV8j/dc0vxcCX6fOuyWGc5ojV4','user','ak_967b91e0411fb3c4','2023-10-28 10:23: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=3893;

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

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


