mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-05 23:49:53 +08:00
chore: 移除、修改一些数据库字段
This commit is contained in:
@@ -11,7 +11,6 @@ pub struct Model {
|
|||||||
pub f_id: i32,
|
pub f_id: i32,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub path: String,
|
pub path: String,
|
||||||
pub enabled: bool,
|
|
||||||
pub created_at: String,
|
pub created_at: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ pub struct Model {
|
|||||||
pub cid: i32,
|
pub cid: i32,
|
||||||
pub pid: i32,
|
pub pid: i32,
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub path: String,
|
pub path: Option<String>,
|
||||||
pub image: Option<String>,
|
pub image: Option<String>,
|
||||||
pub download_status: u32,
|
pub download_status: u32,
|
||||||
pub created_at: String,
|
pub created_at: String,
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ impl MigrationTrait for Migration {
|
|||||||
.col(ColumnDef::new(Favorite::FId).unique_key().unsigned().not_null())
|
.col(ColumnDef::new(Favorite::FId).unique_key().unsigned().not_null())
|
||||||
.col(ColumnDef::new(Favorite::Name).string().not_null())
|
.col(ColumnDef::new(Favorite::Name).string().not_null())
|
||||||
.col(ColumnDef::new(Favorite::Path).string().not_null())
|
.col(ColumnDef::new(Favorite::Path).string().not_null())
|
||||||
.col(ColumnDef::new(Favorite::Enabled).boolean().not_null())
|
|
||||||
.col(
|
.col(
|
||||||
ColumnDef::new(Favorite::CreatedAt)
|
ColumnDef::new(Favorite::CreatedAt)
|
||||||
.timestamp()
|
.timestamp()
|
||||||
@@ -85,7 +84,7 @@ impl MigrationTrait for Migration {
|
|||||||
.col(ColumnDef::new(Page::Cid).unsigned().not_null())
|
.col(ColumnDef::new(Page::Cid).unsigned().not_null())
|
||||||
.col(ColumnDef::new(Page::Pid).unsigned().not_null())
|
.col(ColumnDef::new(Page::Pid).unsigned().not_null())
|
||||||
.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())
|
||||||
.col(ColumnDef::new(Page::Image).string())
|
.col(ColumnDef::new(Page::Image).string())
|
||||||
.col(ColumnDef::new(Page::DownloadStatus).unsigned().not_null())
|
.col(ColumnDef::new(Page::DownloadStatus).unsigned().not_null())
|
||||||
.col(
|
.col(
|
||||||
@@ -139,7 +138,6 @@ enum Favorite {
|
|||||||
FId,
|
FId,
|
||||||
Name,
|
Name,
|
||||||
Path,
|
Path,
|
||||||
Enabled,
|
|
||||||
CreatedAt,
|
CreatedAt,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user