using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace FotbalPortal.Models
{
    
    public class Player
    {
        public int id { get; set; }
        [Display(Name = "Jméno")]
        public string firstName { get; set; }
        [Display(Name = "Příjmení")]
        public string lastName { get; set; }
        [Display(Name = "Celé jméno")]
        public string fullName { get; set; }
        [Display(Name = "Přezdívka")]
        public string nickName { get; set; }
        [Display(Name = "Země")]
        public int countryID { get; set; }
        public virtual Country country { get; set; }
        [Display(Name = "Klub")]
        public int clubID { get; set; }
        public virtual Club club { get; set; }
        [Display(Name = "Datum narození")]
        [DataType(DataType.DateTime)]
        [DisplayFormat(DataFormatString = "{0:dd. MM. yyyy}", ApplyFormatInEditMode = true)]
        public DateTime borned { get; set; }
        [Display(Name = "Váha")]
        public int weight { get; set; }
        [Display(Name = "Výška")]
        public int height { get; set; }
        [Display(Name = "Číslo dresu")]
        public int dressNumber { get; set; }
        [Display(Name = "Obrázek")]
        public string image { get; set; }

    }

    public class PlayerResult
    {
        public int id { get; set; }
        public int resultID { get; set; }
        public int playerID { get; set; }
        public int clubID { get; set; }
        public int minutes { get; set; }
        public int goals { get; set; }
        public int goalsReceived { get; set; }
        public int yellowCards { get; set; }
        public int redCards { get; set; }

    }

    public class SquadPlayer
    {
        public int playerID { get; set; }
        public string name { get; set; }
        public int number { get; set; }
        public string born { get; set; }
        public int matches { get; set; }
        public int minutes { get; set; }
        public int goals { get; set; }
        public int yellowCards { get; set; }
        public int redCards { get; set; }
    }

    public class PlayerStats
    {
        public int playerID { get; set; }
        public int resultID { get; set; }
        public int round { get; set; }
        public string date { get; set; }
        public string homeClub { get; set; }
        public string visitorClub { get; set; }
        public string result { get; set; }
        public int minutes { get; set; }
        public int goals { get; set; }
        public int yellowCards { get; set; }
        public int redCards { get; set; }
    }
}