Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Data/DataModel/PuzzleUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class PuzzleUser
/// </summary>
[ForeignKey("AspNetUsers.Id")]
[Required]
[MaxLength(450)]
public string IdentityUserId { get; set; }

[PersonalData]
Expand Down
26 changes: 24 additions & 2 deletions Data/DataModel/TeamMembers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,47 @@ public class TeamMembers
public int ID { get; set; }

/// <summary>
/// Foreign Key - Team table
/// Populates with Team.ID
/// </summary>
[ForeignKey("Team.ID")]
[Column("Team.ID")]
public int TeamID { get; set; }

/// <summary>
/// Foreign Key - Team table
/// </summary>
[Required]
public virtual Team Team { get; set; }

/// <summary>
/// Foreign Key - User table
/// Populates with User.ID
/// </summary>
[ForeignKey("User.ID")]
[Column("User.ID")]
public int MemberID { get; set; }

/// <summary>
/// Foreign Key - User table
/// </summary>
[Required]
public virtual PuzzleUser Member { get; set; }

/// <summary>
/// Populates with Class.ID
/// </summary>
public int? ClassID { get; set; }

/// <summary>
/// The class or category that the player falls into (classes are defined per event if used).
/// This is for player categories unique to an event (e.g. character class for an RPG event or region if relevant for an international event)
/// </summary>
public virtual PlayerClass Class { get; set; }

/// <summary>
/// Populates with TemporaryClass.ID
/// </summary>
public int? TemporaryClassID { get; set; }

/// <summary>
/// If the player or event allows an override class that applies to the player temporarily
/// This can be set and unset by the player on the TeamDetails page
Expand Down
Loading