[#2] Refactored and added SQLX schema files.

This commit is contained in:
2025-08-29 19:09:05 -04:00
parent 0a16667b76
commit 7b5c69cc50
17 changed files with 242 additions and 54 deletions

View File

@ -20,7 +20,7 @@ pub type Markdown = String;
/// This includes details such as the title, author, summary, and
/// associated tags.
#[derive(Deserialize, Serialize)]
pub struct FrontMatter
pub struct Lore
{
/// The title of the tale.
pub title: String,
@ -49,8 +49,8 @@ pub struct Tale
{
/// Metadata of the post.
#[serde(flatten)]
pub front_matter: FrontMatter,
pub lore: Lore,
/// The file path to the Markdown content of the tale.
pub content: Markdown
pub story: Markdown
}