37 lines
952 B
C#
37 lines
952 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace KTUSAPS.Data.Model
|
|
{
|
|
public class PublishedProblem
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
[Required]
|
|
[MaxLength]
|
|
public string ProblemLt { get; set; }
|
|
[Required]
|
|
[MaxLength]
|
|
public string ProblemEn { get; set; }
|
|
|
|
public DateTime Created { get; set; }
|
|
|
|
public int? IssueId { get; set; }
|
|
public virtual Issue Issue { get; set; }
|
|
|
|
public int? SolutionId { get; set; }
|
|
public virtual Solution Solution { get; set; }
|
|
public virtual HashSet<Vote> Votes { get; set; }
|
|
|
|
public PublishedProblem()
|
|
{
|
|
Created = DateTime.Now;
|
|
}
|
|
}
|
|
}
|