Add 'backend/' from commit '040cfd7a75423d4e6136e58a67b40579af4ee966'
git-subtree-dir: backend git-subtree-mainline:ab911955edgit-subtree-split:040cfd7a75
This commit is contained in:
21
backend/src/Web/Features/Contents/Data/Content.cs
Normal file
21
backend/src/Web/Features/Contents/Data/Content.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Hutopy.Web.Features.Contents.Data;
|
||||
|
||||
public class Content
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
public Guid CreatedBy { get; init; }
|
||||
public Creator? Creator { get; set; }
|
||||
public DateTimeOffset CreatedAt { get; init; }
|
||||
public Guid? DeletedBy { get; set; }
|
||||
public DateTimeOffset? DeletedAt { get; set; }
|
||||
[MaxLength(128)] public required string Title { get; set; }
|
||||
|
||||
[MaxLength(512)] public string? ThumbnailUrl { get; set; } = "";
|
||||
[MaxLength(2048)] public string Description { get; set; } = "";
|
||||
[MaxLength(2048)] public string? HtmlFileUrl { get; set; } = "";
|
||||
public IList<ContentReaction> Reactions { get; set; } = new List<ContentReaction>();
|
||||
public string[]? Urls { get; init; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user