Mostly backend models stuff

Changed some models, did some work on database, created a class diagram.
This commit is contained in:
Nadegamra
2021-09-08 20:20:32 +03:00
parent 3e82ea9392
commit a3b4bb2e30
11 changed files with 105 additions and 14 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KTUSAPS.Data.Model
{
public class Vote
{
[MaxLength(64)]
public string UserId { get; set; }
public int ProblemId { get; set; }
public PublishedProblem Problem { get; set; }
}
}