This repository has been archived on 2025-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
Files
KTUSA-PS/KTUSAPS.Data/Model/PublishedProblem.cs
Karolis Kundrotas aff6f8df82 Huge work
2021-10-25 22:00:01 +03:00

37 lines
948 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 ICollection<Vote> Votes { get; set; }
public PublishedProblem()
{
Created = DateTime.Now;
}
}
}