vassago/Models/Attachment.cs

18 lines
562 B
C#
Raw Normal View History

2023-06-01 00:03:23 -04:00
namespace vassago.Models;
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-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; }
}