﻿using System;
using System.ComponentModel.DataAnnotations;
using EscapistasClub.Core.Enums;

namespace EscapistasClub.Core.Models
{
    public class GameRating : IDomainEntity
    {
        [Required]
        public string Id { get; set; }
        [Required]
        public DateTimeOffset CreatedDate { get; set; }
        [Required]
        public DateTimeOffset LastUpdatedDate { get; set; }

        [Required]
        public double Rating { get; set; }
        [Required]
        public RatingType RatingType { get; set; }

        public virtual ApplicationUser User { get; set; }

        [Required]
        public virtual Game Game { get; set; }
        [Required]
        public string AuthorIpAddress { get; set; }
        [Required]
        public AuthorType AuthorType { get; set; }

        public bool IsSpam { get; set; }
    }
}