31 lines
793 B
C#
31 lines
793 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace BCards.Web.Models;
|
|
|
|
public class PageDocument
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
[BsonElement("fileId")]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string FileId { get; set; } = string.Empty;
|
|
|
|
[BsonElement("title")]
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
[BsonElement("description")]
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
[BsonElement("fileName")]
|
|
public string FileName { get; set; } = string.Empty;
|
|
|
|
[BsonElement("fileSize")]
|
|
public long FileSize { get; set; }
|
|
|
|
[BsonElement("uploadedAt")]
|
|
public DateTime UploadedAt { get; set; } = DateTime.UtcNow;
|
|
}
|