added database models and models for continous use. Also changed get all paths according to that. Nothing is testet yet!

This commit is contained in:
2025-11-01 20:47:04 +01:00
parent d02c1fa314
commit fdf335b346
13 changed files with 280 additions and 51 deletions

View File

@@ -0,0 +1,17 @@
use chrono::{DateTime, Utc};
#[derive(sqlx::FromRow, Debug)]
pub struct PathDb {
pub id: String,
pub title: String,
pub description: String,
}
#[derive(Debug, sqlx::FromRow)]
pub struct MetadataDb {
pub path_id : String,
pub version: String,
pub created_at: String,
pub updated_at: String,
}