Major refactor and cleanup.

This commit is contained in:
2025-11-13 04:05:35 +00:00
parent 1d67081792
commit 8f6d334af4
833 changed files with 86800 additions and 74355 deletions

View File

@@ -26,29 +26,31 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marechai.Database.Models
namespace Marechai.Database.Models;
public class DumpHardware : BaseModel<ulong>
{
public class DumpHardware : BaseModel<ulong>
{
[StringLength(48)]
public string Manufacturer { get; set; }
[StringLength(48), Required]
public string Model { get; set; }
[StringLength(48)]
public string Revision { get; set; }
[StringLength(32)]
public string Firmware { get; set; }
[StringLength(64)]
public string Serial { get; set; }
[StringLength(64), Required]
public string SoftwareName { get; set; }
[StringLength(32)]
public string SoftwareVersion { get; set; }
[StringLength(64)]
public string SoftwareOperatingSystem { get; set; }
[Required, Column(TypeName = "json")]
public Extent[] Extents { get; set; }
[Required]
public virtual Dump Dump { get; set; }
}
[StringLength(48)]
public string Manufacturer { get; set; }
[StringLength(48)]
[Required]
public string Model { get; set; }
[StringLength(48)]
public string Revision { get; set; }
[StringLength(32)]
public string Firmware { get; set; }
[StringLength(64)]
public string Serial { get; set; }
[StringLength(64)]
[Required]
public string SoftwareName { get; set; }
[StringLength(32)]
public string SoftwareVersion { get; set; }
[StringLength(64)]
public string SoftwareOperatingSystem { get; set; }
[Required]
[Column(TypeName = "json")]
public Extent[] Extents { get; set; }
[Required]
public virtual Dump Dump { get; set; }
}