using Sevomin.Models.Helpers; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Sevomin.Models { public class Job { [Key] public long Id { get; set; } [Required] [Index] [StringLength(128)] public string AvalinId { get; set; } public virtual Avalin Avalin { get; set; } public DateTime CreateDate { get; set; } public DateTime ExpireDate { get; set; } public string Description { get; set; } public byte ResumeType { get; set; } public string ContactPersonName { get; set; } public string ContactPersonPhone { get; set; } [EmailValidation] public string ContactPersonEMail { get; set; } public bool ShowCompanyName { get; set; } public bool ShowCompanyLogo { get; set; } public bool IsFullTime { get; set; } public virtual ICollection JobParameters { get; set; } public virtual ICollection Applications { get; set; } } }