Timothy Schenk
6d9a72ded4
Some checks failed
Build, Package and Push Images / preprocess (push) Successful in 2s
Build, Package and Push Images / build (push) Successful in 25s
Build, Package and Push Images / sbom-scan (push) Successful in 36s
Build, Package and Push Images / sonarqube (push) Failing after 1m36s
Build, Package and Push Images / container-build (push) Successful in 2m4s
Build, Package and Push Images / container-sbom-scan (push) Successful in 39s
31 lines
864 B
C#
31 lines
864 B
C#
// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Continuity.AuthServer.DB.Documents;
|
|
|
|
[Index(nameof(Id), IsUnique = true)]
|
|
public class GuildMember
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public Guid Id { get; set; }
|
|
|
|
public virtual Guid CharacterId { get; set; }
|
|
|
|
[DeleteBehavior(DeleteBehavior.Restrict)]
|
|
[ForeignKey(nameof(CharacterId))]
|
|
[Required]
|
|
public virtual Character Character { get; set; }
|
|
|
|
public virtual Guid GuildId { get; set; }
|
|
|
|
[DeleteBehavior(DeleteBehavior.Restrict)]
|
|
[ForeignKey(nameof(GuildId))]
|
|
[Required]
|
|
public virtual Guild Guild { get; set; }
|
|
|
|
public GuildRank Rank { get; set; }
|
|
}
|