mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-07-12 16:11:32 +08:00
chore: 移除、修改一些数据库字段
This commit is contained in:
@@ -13,7 +13,6 @@ pub struct Model {
|
|||||||
pub name: String,
|
pub name: String,
|
||||||
pub path: String,
|
pub path: String,
|
||||||
pub image: Option<String>,
|
pub image: Option<String>,
|
||||||
pub valid: bool,
|
|
||||||
pub download_status: u32,
|
pub download_status: u32,
|
||||||
pub created_at: String,
|
pub created_at: String,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ pub struct Model {
|
|||||||
pub ctime: DateTime,
|
pub ctime: DateTime,
|
||||||
pub pubtime: DateTime,
|
pub pubtime: DateTime,
|
||||||
pub favtime: DateTime,
|
pub favtime: DateTime,
|
||||||
pub handled: bool,
|
pub download_status: u32,
|
||||||
pub valid: bool,
|
pub valid: bool,
|
||||||
pub tags: Option<serde_json::Value>,
|
pub tags: Option<serde_json::Value>,
|
||||||
pub single_page: Option<bool>,
|
pub single_page: Option<bool>,
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ impl MigrationTrait for Migration {
|
|||||||
.col(ColumnDef::new(Video::Ctime).timestamp().not_null())
|
.col(ColumnDef::new(Video::Ctime).timestamp().not_null())
|
||||||
.col(ColumnDef::new(Video::Pubtime).timestamp().not_null())
|
.col(ColumnDef::new(Video::Pubtime).timestamp().not_null())
|
||||||
.col(ColumnDef::new(Video::Favtime).timestamp().not_null())
|
.col(ColumnDef::new(Video::Favtime).timestamp().not_null())
|
||||||
.col(ColumnDef::new(Video::Handled).boolean().default(false).not_null())
|
.col(ColumnDef::new(Video::DownloadStatus).unsigned().not_null())
|
||||||
.col(ColumnDef::new(Video::Valid).boolean().not_null())
|
.col(ColumnDef::new(Video::Valid).boolean().not_null())
|
||||||
.col(ColumnDef::new(Video::Tags).json_binary())
|
.col(ColumnDef::new(Video::Tags).json_binary())
|
||||||
.col(ColumnDef::new(Video::SinglePage).boolean())
|
.col(ColumnDef::new(Video::SinglePage).boolean())
|
||||||
@@ -87,7 +87,6 @@ impl MigrationTrait for Migration {
|
|||||||
.col(ColumnDef::new(Page::Name).string().not_null())
|
.col(ColumnDef::new(Page::Name).string().not_null())
|
||||||
.col(ColumnDef::new(Page::Path).string().not_null())
|
.col(ColumnDef::new(Page::Path).string().not_null())
|
||||||
.col(ColumnDef::new(Page::Image).string())
|
.col(ColumnDef::new(Page::Image).string())
|
||||||
.col(ColumnDef::new(Page::Valid).boolean().not_null())
|
|
||||||
.col(ColumnDef::new(Page::DownloadStatus).unsigned().not_null())
|
.col(ColumnDef::new(Page::DownloadStatus).unsigned().not_null())
|
||||||
.col(
|
.col(
|
||||||
ColumnDef::new(Page::CreatedAt)
|
ColumnDef::new(Page::CreatedAt)
|
||||||
@@ -161,7 +160,7 @@ enum Video {
|
|||||||
Ctime,
|
Ctime,
|
||||||
Pubtime,
|
Pubtime,
|
||||||
Favtime,
|
Favtime,
|
||||||
Handled,
|
DownloadStatus,
|
||||||
Valid,
|
Valid,
|
||||||
Tags,
|
Tags,
|
||||||
SinglePage,
|
SinglePage,
|
||||||
@@ -178,7 +177,6 @@ enum Page {
|
|||||||
Name,
|
Name,
|
||||||
Path,
|
Path,
|
||||||
Image,
|
Image,
|
||||||
Valid,
|
|
||||||
DownloadStatus,
|
DownloadStatus,
|
||||||
CreatedAt,
|
CreatedAt,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user