Files
DiunaBI/WebAPI/Models/Record.cs

35 lines
1.0 KiB
C#
Raw Normal View History

2022-12-11 23:40:16 +01:00
using System.ComponentModel.DataAnnotations;
namespace WebAPI.Models
{
2023-01-05 19:25:32 +01:00
public class Record
2022-12-11 23:40:16 +01:00
{
#region Properties
[Key]
public Guid Id { get; set; }
[Required]
2022-12-19 18:36:57 +01:00
public string? Code { get; set; }
2022-12-11 23:40:16 +01:00
[Required]
public float Value { get; set; }
//Description fields
public string? Desc1 { get; set; }
public string? Desc2 { get; set; }
public string? Desc3 { get; set; }
public string? Desc4 { get; set; }
public string? Desc5 { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime ModifiedAt { get; set; }
public bool IsDeleted { get; set; }
#endregion
#region Relations
2022-12-19 18:36:57 +01:00
[Required]
2022-12-11 23:40:16 +01:00
public Guid CreatedById { get; set; }
public User? CreatedBy { get; set; }
2022-12-19 18:36:57 +01:00
[Required]
2022-12-11 23:40:16 +01:00
public Guid ModifiedById { get; set; }
public User? ModifiedBy { get; set; }
2023-01-06 11:10:58 +01:00
public Guid LayerId { get; set; }
2022-12-11 23:40:16 +01:00
#endregion
}
}