﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace RAMdomizer.Entities.Models
{
    public class Giveaway
    {
        [Key]
        public int GiveawayId { get; set; }
        public string Name { get; set; }
        public DateTime CreationDate { get; set; }
        public DateTime DrawDate { get; set; }
        public int IdStatus { get; set; }

        //Foreign key
        public string UserId { get; set; }
        public ApplicationUser User { get; set; }

        //Navigation Property
        public ICollection<Prize> Prizes { get; set; }
        public ICollection<Participant> Participants { get; set; }
        public ICollection<ParticipantCustomField> ParticipantCustomFields { get; set; }
        public ICollection<Winner> Winners { get; set; }
    }
}
