-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathCourse.cs
More file actions
20 lines (19 loc) · 770 Bytes
/
Course.cs
File metadata and controls
20 lines (19 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using HwProj.Repositories.Net8;
namespace HwProj.CoursesService.API.Models
{
public class Course : IEntity<long>
{
[Key] public long Id { get; set; }
public string Name { get; set; }
public string GroupName { get; set; }
public bool IsOpen { get; set; }
public string InviteCode { get; set; }
public bool IsCompleted { get; set; }
public string MentorIds { get; set; }
public List<CourseMate> CourseMates { get; set; } = new List<CourseMate>();
public List<Homework> Homeworks { get; set; } = new List<Homework>();
public List<Assignment> Assignments { get; set; } = new List<Assignment>();
}
}