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

@@ -27,29 +27,28 @@ using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marechai.Database.Models
namespace Marechai.Database.Models;
public class DbFile : BaseModel<ulong>
{
public class DbFile : BaseModel<ulong>
{
[Required]
public ulong Size { get; set; }
[Column(TypeName = "binary(16)")]
public string Md5 { get; set; }
[Column(TypeName = "binary(20)")]
public string Sha1 { get; set; }
[Column(TypeName = "binary(32)")]
public string Sha256 { get; set; }
[Column(TypeName = "binary(64)")]
public string Sha3 { get; set; }
public string Spamsum { get; set; }
public string Mime { get; set; }
public string Magic { get; set; }
public string AccoustId { get; set; }
[DefaultValue(false)]
public bool Infected { get; set; }
public string Malware { get; set; }
[DefaultValue(false)]
public bool Hack { get; set; }
public string HackGroup { get; set; }
}
[Required]
public ulong Size { get; set; }
[Column(TypeName = "binary(16)")]
public string Md5 { get; set; }
[Column(TypeName = "binary(20)")]
public string Sha1 { get; set; }
[Column(TypeName = "binary(32)")]
public string Sha256 { get; set; }
[Column(TypeName = "binary(64)")]
public string Sha3 { get; set; }
public string Spamsum { get; set; }
public string Mime { get; set; }
public string Magic { get; set; }
public string AccoustId { get; set; }
[DefaultValue(false)]
public bool Infected { get; set; }
public string Malware { get; set; }
[DefaultValue(false)]
public bool Hack { get; set; }
public string HackGroup { get; set; }
}