Table of Contents

Class MailTemplate

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll

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

string

Html

[Column(TypeName = "jsonb")]
public required TranslatableField Html { get; set; }

Property Value

TranslatableField

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

string

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

bool

Subject

[Column(TypeName = "jsonb")]
public required TranslatableField Subject { get; set; }

Property Value

TranslatableField

UsesMailBaseTemplate

public required bool UsesMailBaseTemplate { get; set; }

Property Value

bool