mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 17:51:20 +00:00
34 lines
665 B
C#
34 lines
665 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MyCore.Interfaces.Models
|
|
{
|
|
public class LogDatabase // TODO
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public int Id { get; set; }
|
|
|
|
[BsonElement("Time")]
|
|
public DateTime Time { get; set; }
|
|
|
|
[BsonElement("Level")]
|
|
public int Level { get; set; }
|
|
|
|
[BsonElement("Message")]
|
|
public string Message { get; set; }
|
|
|
|
[BsonElement("Sent")]
|
|
public bool Sent { get; set; }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|