23 lines
750 B
C#
23 lines
750 B
C#
using System.ComponentModel.DataAnnotations;
|
|
namespace PlotLine.Models;
|
|
|
|
public sealed class WriterObjective
|
|
{
|
|
public int BookID { get; set; }
|
|
public int? ChapterID { get; set; }
|
|
public int? SceneID { get; set; }
|
|
[Required, RegularExpression("^(Drafting|Revising|Editing|Researching|Proofreading)$")]
|
|
public string Activity { get; set; } = "Drafting";
|
|
[StringLength(2000)]
|
|
public string? Intention { get; set; }
|
|
public string? ChapterTitle { get; set; }
|
|
public string? SceneTitle { get; set; }
|
|
}
|
|
public sealed class WriterObjectiveChoice
|
|
{
|
|
public int ChapterID { get; set; }
|
|
public string ChapterTitle { get; set; } = "";
|
|
public int? SceneID { get; set; }
|
|
public string? SceneTitle { get; set; }
|
|
}
|