Skip to content

Instantly share code, notes, and snippets.

@mr5z
Last active October 30, 2020 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mr5z/448c874dbb1a5885c19b8b01ad0e3bf5 to your computer and use it in GitHub Desktop.
Save mr5z/448c874dbb1a5885c19b8b01ad0e3bf5 to your computer and use it in GitHub Desktop.
// Cave
public partial class Cave
{
[Key]
public int Id { get; set; }
[ForeignKey(nameof(Author))]
public int AuthorId { get; set; }
[ForeignKey(nameof(Map))]
public int MapId { get; set; }
[StringLength(50)]
public string Name { get; set; }
public DateTimeOffset DateCreated { get; set; }
public long Duration { get; set; }
public DeviceType DeviceOrigin { get; set; }
public bool ShowJumpScare { get; set; }
public double EndPointRadius { get; set; }
// Unused
public Map Map { get; set; }
public virtual User Author { get; set; }
}
// User
public partial class User
{
[Key]
public int Id { get; set; }
[StringLength(50)]
public string DisplayName { get; set; }
public UserType Type { get; set; }
// Unused
public virtual ICollection<Cave> Cave { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment