implemented get_path_by_id and get_all_paths

This commit is contained in:
2025-10-27 21:30:57 +01:00
parent 8c9b735d75
commit 2d6620faa6
9 changed files with 68 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
pub struct Exercise {
id: u16,
ex_type: String,
content: String,
node_id: u32
}

View File

@@ -0,0 +1,3 @@
pub mod path;
pub mod node;
pub mod exercise;

View File

@@ -0,0 +1,6 @@
pub struct Node {
id: u32,
title: String,
description: String,
path_id: String
}

View File

@@ -0,0 +1,12 @@
#[derive(Debug, sqlx::FromRow)]
pub struct Path {
id: String,
title: String,
description: String,
}
pub struct PathVersions {
path_id: String,
version_number: String,
}