Class MailTemplate
Mail template to be used for email traffic in the GastroSky backend.
[Table("MailTemplates")]
public sealed class MailTemplate
- Inheritance
-
MailTemplate
- Inherited Members
Properties
Comment
This should describe what the email template is and where it will be used and under what circumstances.
Not visible anywhere except in the mail templates admin dashboard.
public string? Comment { get; set; }
Property Value
Html
[Column(TypeName = "jsonb")]
public required TranslatableField Html { get; set; }
Property Value
Id
Uniquely identifying ID string that is also the MailTemplate's DB primary key.
[Key]
[MaxLength(256)]
public required string Id { get; set; }
Property Value
LastModificationTimestampUTC
Unix-timestamp of when this MailTemplate was last modified.
public long? LastModificationTimestampUTC { get; set; }
Property Value
- long?
PreventDeletion
Whether or not this MailTemplate is delete-locked (e.g. it should not be possible to delete a built-in MailTemplate).
public bool PreventDeletion { get; set; }
Property Value
Subject
[Column(TypeName = "jsonb")]
public required TranslatableField Subject { get; set; }
Property Value
UsesMailBaseTemplate
public required bool UsesMailBaseTemplate { get; set; }