App refactor done

This commit is contained in:
Michał Zieliński
2025-11-05 20:50:25 +01:00
parent b65ea7d17f
commit 5bee3912f1
97 changed files with 2454 additions and 2320 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace DiunaBI.Domain.Entities;
public enum LayerType
{
Import,
Processed,
Administration,
Dictionary,
}
public class Layer
{
#region Properties
public Guid Id { get; init; }
public int Number { get; init; }
public string? Name { get; set; }
public LayerType Type { get; init; }
public DateTime CreatedAt { get; set; }
public DateTime ModifiedAt { get; set; }
public bool IsDeleted { get; init; } = false;
public bool IsCancelled { get; init; } = false;
#endregion
#region Relations
public ICollection<Record>? Records { get; init; }
public Guid CreatedById { get; set; }
public User? CreatedBy { get; init; }
public Guid ModifiedById { get; set; }
public User? ModifiedBy { get; init; }
public Guid? ParentId { get; init; }
#endregion
}