File size: 402 Bytes
7535af1
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;
using MongoDB.Bson.Serialization.Attributes;

namespace TelegramSaaS.Infrastructure.Persistence;

public class MongoFile
{
    [BsonId]
    public string Id { get; set; } = null!; // The relative path, e.g. "public-outputs/folder/xyz.png"
    public byte[] Content { get; set; } = null!;
    public string ContentType { get; set; } = null!;
    public DateTime UploadedAt { get; set; }
}