[#2] Refactored and added SQLX schema files.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user