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 ba413d4330 Controllers
2021-10-29 09:17:17 +03:00

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;
}
}
}