-- SPDX-FileCopyrightText: 2022 Gregor Kleen <gregor.kleen@ifi.lmu.de>,Steffen Jost <jost@tcs.ifi.lmu.de>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later

SentMail
    sentAt       UTCTime
    sentBy       InstanceId
    objectId     MailObjectId Maybe
    bounceSecret BounceSecret Maybe
    recipient    UserId Maybe OnDeleteCascade
    headers      MailHeaders
    contentRef   SentMailContentId
    deriving Generic

SentMailContent
    hash    MailContentReference
    content MailContent
    Primary hash
    deriving Generic