Truncated the post's body to prevent them from being too long

This commit is contained in:
2025-05-01 23:49:17 +08:00
parent f7e926ad24
commit 24f1a3a9e9
5 changed files with 83 additions and 2 deletions

View File

@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using DysonNetwork.Sphere.Storage;
namespace DysonNetwork.Sphere.Realm;
public class Realm : ModelBase
{
public long Id { get; set; }
[MaxLength(1024)] public string Name { get; set; } = string.Empty;
[MaxLength(4096)] public string Description { get; set; } = string.Empty;
public CloudFile? Picture { get; set; }
public CloudFile? Background { get; set; }
public long? AccountId { get; set; }
[JsonIgnore] public Account.Account? Account { get; set; }
}