✨ Realm tags and discovery
This commit is contained in:
@ -29,6 +29,7 @@ public class Realm : ModelBase, IIdentifiedResource
|
||||
|
||||
[JsonIgnore] public ICollection<RealmMember> Members { get; set; } = new List<RealmMember>();
|
||||
[JsonIgnore] public ICollection<ChatRoom> ChatRooms { get; set; } = new List<ChatRoom>();
|
||||
[JsonIgnore] public ICollection<RealmTag> RealmTags { get; set; } = new List<RealmTag>();
|
||||
|
||||
public Guid AccountId { get; set; }
|
||||
[JsonIgnore] public Account.Account Account { get; set; } = null!;
|
||||
|
12
DysonNetwork.Sphere/Realm/RealmTag.cs
Normal file
12
DysonNetwork.Sphere/Realm/RealmTag.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace DysonNetwork.Sphere.Realm;
|
||||
|
||||
public class RealmTag : ModelBase
|
||||
{
|
||||
public Guid RealmId { get; set; }
|
||||
public Realm Realm { get; set; } = null!;
|
||||
|
||||
public Guid TagId { get; set; }
|
||||
public Tag Tag { get; set; } = null!;
|
||||
}
|
14
DysonNetwork.Sphere/Realm/Tag.cs
Normal file
14
DysonNetwork.Sphere/Realm/Tag.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DysonNetwork.Sphere.Realm;
|
||||
|
||||
public class Tag : ModelBase
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
[MaxLength(64)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public ICollection<RealmTag> RealmTags { get; set; } = new List<RealmTag>();
|
||||
}
|
Reference in New Issue
Block a user