20 lines
550 B
C#
20 lines
550 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace BeReadyBackend.Models;
|
|
|
|
[PrimaryKey(nameof(UserId), nameof(GroupId))]
|
|
public class UserGroup
|
|
{
|
|
public User? User { get; set; }
|
|
[Required] public int UserId { get; set; }
|
|
|
|
public Group? Group { get; set; }
|
|
[Required] public int GroupId { get; set; }
|
|
|
|
public string? Proof { get; set; }
|
|
|
|
[Required] public string? Grade { get; set; }
|
|
public int? VotedProofId { get; set; }
|
|
[Required] public int Score { get; set; }
|
|
} |