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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=1325;

--
-- Dumping data for table `orders`
--


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$vyN/7QHR.kKFIxSbbqNKghUPDa9tBjmju/9waUfLGLkKdiK1/CMzy','user','ak_cba3eb9bf44ca847','2023-12-16 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$Oidt5ZiGnFvjN0aCidwrverERzrLsQh4alvLq9J2Q0nvUaKc2T.mH','user','ak_29ab9d983fa4deb6','2023-01-23 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$Q/FNX5Ebew5ogR6UbOsdwvHNssBnljWmRO.qdDP5e2Ojp4pPBdbqb','user','ak_ec004f7327a966ff','2023-05-17 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$FjFq5s8LZNSmi0VSunSZ1hKfYnN3eaQeqqbD8jKC5g9kBCTWtOYXq','user','ak_4ebeada46b740910','2023-04-16 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$OIx6WHHXAIbkiGbd1EUktOyvLxohJ1RlwRLMn8vhQLddmd6CZt4oZ','admin','ak_5d57b8a29c4f2fa6','2023-06-03 10:16:00',NULL);

