mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 08:18:49 -07:00
23 lines
518 B
C#
23 lines
518 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace sodoff.Model;
|
|
|
|
public class RatingRank {
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
public int CategoryID { get; set; }
|
|
|
|
public int? RatedEntityID { get; set; }
|
|
public string? RatedUserID { get; set; }
|
|
|
|
public int Rank { get; set; }
|
|
|
|
/// <summary>On a scale of 1-5</summary>
|
|
public float RatingAverage { get; set; }
|
|
|
|
public DateTime UpdateDate { get; set; }
|
|
|
|
public virtual ICollection<Rating> Ratings { get; set; } = null!;
|
|
}
|