35 lines
1021 B
C#
35 lines
1021 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace SessionCompanion.Database.Tables
|
|||
|
{
|
|||
|
public class Biography : BaseEntity
|
|||
|
{
|
|||
|
[ForeignKey(nameof(Character))]
|
|||
|
public int CharacterId { get; set; }
|
|||
|
public virtual Character Character { get; set; }
|
|||
|
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
[ForeignKey(nameof(Class))]
|
|||
|
public int ClassId { get; set; }
|
|||
|
public virtual Class Class { get; set; }
|
|||
|
|
|||
|
[ForeignKey(nameof(Race))]
|
|||
|
public int RaceId { get; set; }
|
|||
|
public virtual Race Race { get; set; }
|
|||
|
|
|||
|
[ForeignKey(nameof(Alignment))]
|
|||
|
public int AlignmentId { get; set; }
|
|||
|
public virtual Alignment Alignment { get; set; }
|
|||
|
|
|||
|
[ForeignKey(nameof(Background))]
|
|||
|
public int BackgroundId { get; set; }
|
|||
|
public virtual Background Background { get; set; }
|
|||
|
|
|||
|
public string Sex { get; set; }
|
|||
|
}
|
|||
|
}
|