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
}