diff --git a/entity/src/entities/video.rs b/entity/src/entities/video.rs index ee850ff..7f70804 100644 --- a/entity/src/entities/video.rs +++ b/entity/src/entities/video.rs @@ -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, diff --git a/migration/src/m20240322_000001_create_table.rs b/migration/src/m20240322_000001_create_table.rs index 722c1dc..12d65d5 100644 --- a/migration/src/m20240322_000001_create_table.rs +++ b/migration/src/m20240322_000001_create_table.rs @@ -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,