fix: 数据库定义加入 upper 头像

This commit is contained in:
amtoaer
2024-03-27 23:25:31 +08:00
parent 803feb0f41
commit 986bb11a13
2 changed files with 3 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ pub struct Model {
pub favorite_id: i32,
pub upper_id: i32,
pub upper_name: String,
pub upper_face: String,
pub name: String,
pub path: String,
pub category: i32,

View File

@@ -51,6 +51,7 @@ impl MigrationTrait for Migration {
.col(ColumnDef::new(Video::FavoriteId).unsigned().not_null())
.col(ColumnDef::new(Video::UpperId).unsigned().not_null())
.col(ColumnDef::new(Video::UpperName).string().not_null())
.col(ColumnDef::new(Video::UpperFace).string().not_null())
.col(ColumnDef::new(Video::Name).string().not_null())
.col(ColumnDef::new(Video::Path).string().not_null())
.col(ColumnDef::new(Video::Category).small_unsigned().not_null())
@@ -164,6 +165,7 @@ enum Video {
FavoriteId,
UpperId,
UpperName,
UpperFace,
Name,
Path,
Category,