1use serde::{Deserialize, Serialize};
2use uuid::Uuid;
3
4#[derive(Debug, Serialize, Deserialize, sqlx::FromRow)]
5pub struct BookDBModel {
6 pub id: Uuid,
7 pub name: String,
8 pub directory: String,
9 pub initialized: bool,
10 pub downloadable: bool,
11 pub major_version: i16,
12 pub minor_version: i16,
13 pub patch_version: i16
14}
15
16#[derive(Debug, Serialize, Deserialize, sqlx::FromRow)]
17pub struct FilterDBModel {
18 pub id: Uuid,
19 pub book_id: Uuid,
20 pub name: String,
21 pub enabled: bool
22}