insight/src/Core/Insight.Infrastructure/Entities/HostVideocard.cs

39 lines
1 KiB
C#
Raw Normal View History

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 HostVideocardEntity
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("_batch"), BsonRepresentation(BsonType.ObjectId), JsonPropertyName("batch")]
public string? Batch { 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("company")]
public string? Company { 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("memory")]
public ulong? Memory { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("driver")]
public string? Driver { get; set; }
2023-09-21 18:58:32 +02:00
2023-09-22 22:16:56 +02:00
[BsonElement("date")]
public DateTime? Date { get; set; }
2023-09-21 18:58:32 +02:00
}