Organize code, begin database implementation

This commit is contained in:
Elnu 2023-04-14 13:08:41 -07:00
parent 376fba6795
commit 4e9784baf4
7 changed files with 594 additions and 177 deletions

11
src/word.rs Normal file
View file

@ -0,0 +1,11 @@
use chrono::{DateTime, Utc};
use serde::Serialize;
#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Word {
pub id: i64,
pub word: String,
pub reading: String,
pub timestamp: DateTime<Utc>,
}