using System.Text.Json.Serialization;
namespace Elternbeirat.Contracts;
///
/// A single question and answer of the FAQ, as stored in PocketBase.
///
///
/// On the FAQ page, entries are grouped by .
///
public record Faq
{
///
/// Gets the PocketBase record id.
///
[JsonPropertyName("id")]
public string Id { get; init; } = "";
///
/// Gets the question as a parent would phrase it.
///
[JsonPropertyName("question")]
public string Question { get; init; } = "";
///
/// Gets the answer as Markdown.
///
[JsonPropertyName("answer")]
public string Answer { get; init; } = "";
///
/// Gets the topic the question is grouped under, e.g. "mensa".
///
[JsonPropertyName("topic")]
public string Topic { get; init; } = "";
///
/// Gets a value indicating whether the question is visible to visitors of the site.
///
[JsonPropertyName("public")]
public bool Public { get; init; }
}