2023-09-21 18:58:32 +02:00
|
|
|
|
using MongoDB.Bson;
|
|
|
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
namespace Insight.Infrastructure.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
[BsonIgnoreExtraElements]
|
|
|
|
|
|
public class HostOsEntity
|
2023-09-21 18:58:32 +02:00
|
|
|
|
{
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonId, BsonRepresentation(BsonType.ObjectId), JsonPropertyName("id")]
|
|
|
|
|
|
public string? Id { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonElement("_host"), BsonRepresentation(BsonType.ObjectId), JsonPropertyName("host")]
|
|
|
|
|
|
public string? Host { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonElement("insert")]
|
|
|
|
|
|
public DateTime? Insert { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonElement("update")]
|
|
|
|
|
|
public DateTime? Update { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonElement("name")]
|
|
|
|
|
|
public string? Name { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonElement("version")]
|
|
|
|
|
|
public string? Version { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonElement("architecture")]
|
|
|
|
|
|
public string? Architecture { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonElement("serialnumber")]
|
|
|
|
|
|
public string? SerialNumber { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonElement("virtual")]
|
|
|
|
|
|
public bool? Virtual { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
|
2023-09-22 22:16:56 +02:00
|
|
|
|
[BsonElement("installed")]
|
|
|
|
|
|
public DateTime? Installed { get; set; }
|
2023-09-21 18:58:32 +02:00
|
|
|
|
}
|