feat: создана структура проекта, core, domain, infrastructure. Перенесены enum и task согласно архитектуры
This commit is contained in:
23
PARR.Domain/Entities/TaskEntities/TaskStatus.cs
Normal file
23
PARR.Domain/Entities/TaskEntities/TaskStatus.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PARR.Domain.Constants;
|
||||
using PARR.Domain.Enums;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PARR.Domain.Entities.TaskEntities
|
||||
{
|
||||
[Table("Statuses", Schema = DatabaseSchemas.Task)]
|
||||
[Comment("Таблица статусов заданий")]
|
||||
public class TaskStatus
|
||||
{
|
||||
[Key]
|
||||
public TaskItemStatusEnum Code { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
public required string Description { get; set; }
|
||||
|
||||
|
||||
public ICollection<TaskItem> Tasks { get; set; } = new HashSet<TaskItem>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user