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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$iNY3FhnbZi1g1HA5KRvDfA4.2QZo2KDgds7lftBX5SYkALFg9Qo6J','user','ak_4def524c822c1ab2','2023-12-24 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$47HjCmL5BxuTMs//n0kxlD/n7v6VopmqtwKXfDFrvwLpdE9uZ3FJY','user','ak_12332decfd6a92f7','2023-03-26 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$H.LrY4GdhYcfEvF5ns.X4g2dbPHriBeFGGzeO3VhKhGTomVcMBOwB','user','ak_11edd6412ea3879e','2023-12-11 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$BWDgkp27fqnwezeZWdCfSSiPOPIY1osRBii5nt79PHHx1HxEeuuHW','admin','ak_71e6a5ba0258d16a','2023-12-11 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$yAiRxD3s.VixulEMVcIg4lOS2BwOXxYgczWVkAnUmIy/ZfDNagxL3','user','ak_97383753e72ad2f1','2023-06-16 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$6XRVaaKR5yIDa/xJbZ/2EuauTbVQCnf92mqALu9Tn7BK1CXSHBgcN','user','ak_271dd4e37bf29a2f','2023-11-22 10:05:00',NULL);

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

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


