-- Host: db-master-3.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=1629;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$/Ne4Fx/n/ZQt2GcgtP7D/sO3qOZg7p1RcKDNd3nj4SVySK9QigwbR','user','ak_a09a179a02162612','2023-04-02 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$7XxImWOrIE7wSAfVhyD5VYv4NxDTk6SFTbcPNNb1zsx10qNva2LSX','user','ak_19b4bcbc96f46ad9','2023-09-12 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$EPOcLTro1s2RyQ70Tjb7KyGtB3FAB.brUy7xmD8b39IHnIKt.w84c','user','ak_c80ca72e94ce47b3','2023-03-09 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$RA9BH5aCQdVNNN816ELX6ceXLDfCTytYv42i9XTPxlDpEFLxx4e1o','admin','ak_9b5ff8d39b58fb5f','2023-02-28 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$Xe5G50O10Zf21UKChihIR3jlleQx2ZBNmGUDWhb2YERALh4L6S3QH','user','ak_2e2f8e21518e6dd1','2023-09-13 10:05: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=20538;

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

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


