chore: 变更模型定义(仍非最终)

This commit is contained in:
amtoaer
2024-03-27 00:37:25 +08:00
parent 0320d30ab2
commit 748d0a7830
4 changed files with 22 additions and 55 deletions

View File

@@ -13,7 +13,6 @@ pub struct Model {
pub path: String,
pub enabled: bool,
pub created_at: String,
pub updated_at: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]

View File

@@ -9,15 +9,13 @@ pub struct Model {
pub id: i32,
pub video_id: i32,
pub cid: i32,
pub page: i32,
pub pid: i32,
pub name: String,
pub path: String,
pub image: String,
pub valid: bool,
pub download_status: i32,
pub downloaded: bool,
pub created_at: String,
pub updated_at: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]

View File

@@ -9,21 +9,21 @@ pub struct Model {
pub id: i32,
pub favorite_id: i32,
pub upper_id: i32,
pub upper_name: String,
pub name: String,
pub path: String,
pub category: String,
pub category: i32,
pub bvid: String,
pub intro: String,
pub cover: String,
pub ctime: String,
pub pubtime: String,
pub favtime: String,
pub downloaded: bool,
pub ctime: DateTime,
pub pubtime: DateTime,
pub favtime: DateTime,
pub handled: bool,
pub valid: bool,
pub tags: String,
pub single_page: bool,
pub tags: Option<String>,
pub single_page: Option<bool>,
pub created_at: String,
pub updated_at: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]