chore: 移除、修改一些数据库字段
This commit is contained in:
@@ -11,7 +11,6 @@ pub struct Model {
|
||||
pub f_id: i32,
|
||||
pub name: String,
|
||||
pub path: String,
|
||||
pub enabled: bool,
|
||||
pub created_at: String,
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user