Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
namespace MetaCourse.Api.Entities;
|
||||
|
||||
public enum CourseStatus { Draft, Published }
|
||||
|
||||
public class Course
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public CourseStatus Status { get; set; } = CourseStatus.Draft;
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public Guid CreatorId { get; set; }
|
||||
public User Creator { get; set; } = null!;
|
||||
|
||||
public ICollection<Topic> Topics { get; set; } = new List<Topic>();
|
||||
public ICollection<UserCourse> UserCourses { get; set; } = new List<UserCourse>();
|
||||
}
|
||||
Reference in New Issue
Block a user