chore: 移除、修改一些数据库字段

This commit is contained in:
amtoaer
2024-03-31 13:51:15 +08:00
parent a58d207d22
commit 21213f1d18
3 changed files with 2 additions and 5 deletions

View File

@@ -11,7 +11,6 @@ pub struct Model {
pub f_id: i32,
pub name: String,
pub path: String,
pub enabled: bool,
pub created_at: String,
}

View File

@@ -11,7 +11,7 @@ pub struct Model {
pub cid: i32,
pub pid: i32,
pub name: String,
pub path: String,
pub path: Option<String>,
pub image: Option<String>,
pub download_status: u32,
pub created_at: String,

View File

@@ -21,7 +21,6 @@ impl MigrationTrait for Migration {
.col(ColumnDef::new(Favorite::FId).unique_key().unsigned().not_null())
.col(ColumnDef::new(Favorite::Name).string().not_null())
.col(ColumnDef::new(Favorite::Path).string().not_null())
.col(ColumnDef::new(Favorite::Enabled).boolean().not_null())
.col(
ColumnDef::new(Favorite::CreatedAt)
.timestamp()
@@ -85,7 +84,7 @@ impl MigrationTrait for Migration {
.col(ColumnDef::new(Page::Cid).unsigned().not_null())
.col(ColumnDef::new(Page::Pid).unsigned().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::DownloadStatus).unsigned().not_null())
.col(
@@ -139,7 +138,6 @@ enum Favorite {
FId,
Name,
Path,
Enabled,
CreatedAt,
}