ref: project structure
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
namespace mws.backend.dotnet.domain.Projects;
|
||||
|
||||
public enum ProjectStatus
|
||||
{
|
||||
Active = 1,
|
||||
Archived = 2,
|
||||
}
|
||||
|
||||
public class Project
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
public ProjectStatus Status { get; set; } = ProjectStatus.Active;
|
||||
public Guid CreatedBy { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public Guid? UpdatedBy { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
public List<ProjectMember> Members { get; set; } = [];
|
||||
|
||||
public mws.backend.dotnet.domain.Users.User? CreatedByUser { get; set; }
|
||||
public mws.backend.dotnet.domain.Users.User? UpdatedByUser { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user