2023-06-01 00:03:23 -04:00
|
|
|
namespace vassago.Models;
|
|
|
|
|
2023-05-23 19:03:58 -04:00
|
|
|
using System;
|
2023-06-05 14:55:48 -04:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
2023-06-01 00:03:23 -04:00
|
|
|
public class Attachment
|
2023-05-23 19:03:58 -04:00
|
|
|
{
|
2023-06-05 14:55:48 -04:00
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
2023-06-01 00:03:23 -04:00
|
|
|
public Guid Id { get; set; }
|
|
|
|
public ulong? ExternalId { get; set; }
|
|
|
|
public Uri Source { get; set; }
|
|
|
|
public byte[] Content { get; set; }
|
|
|
|
public string Filename { get; set; }
|
|
|
|
public Message Message { get; set; }
|
2023-06-05 14:55:48 -04:00
|
|
|
public string ContentType { get; internal set; }
|
|
|
|
public string Description { get; internal set; }
|
|
|
|
public int Size { get; internal set; }
|
2023-05-23 19:03:58 -04:00
|
|
|
}
|