mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-14 17:37:36 +08:00
feat(album): add cover picture functionality to albums and enhance album management API
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Foxel.Models.DataBase;
|
||||
|
||||
@@ -14,5 +15,9 @@ public class Album : BaseModel
|
||||
[Required]
|
||||
public User User { get; set; }
|
||||
|
||||
public int? CoverPictureId { get; set; }
|
||||
[ForeignKey("CoverPictureId")]
|
||||
public Picture? CoverPicture { get; set; }
|
||||
|
||||
public ICollection<Picture>? Pictures { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user