using Bit.Core.Utilities;
using Bit.Core.Vault.Models.Data;

namespace Bit.Api.Vault.Models;

public class CipherAttachmentModel
{
    public CipherAttachmentModel() { }

    public CipherAttachmentModel(CipherAttachment.MetaData data)
    {
        FileName = data.FileName;
        Key = data.Key;
    }

    [EncryptedStringLength(1000)]
    public string FileName { get; set; }
    [EncryptedStringLength(1000)]
    public string Key { get; set; }
}
