34 lines
715 B
C#
34 lines
715 B
C#
namespace Flypaper.Storage.Entities;
|
|
|
|
public enum LabEntryKind
|
|
{
|
|
Experiment,
|
|
Observation,
|
|
Hypothesis,
|
|
Method
|
|
}
|
|
|
|
public sealed class LabEntryEntity
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public DateTime Date { get; set; }
|
|
|
|
public required string Title { get; set; }
|
|
|
|
public LabEntryKind Kind { get; set; }
|
|
|
|
public required string Text { get; set; }
|
|
|
|
public string? Commit { get; set; }
|
|
|
|
public string? Strategies { get; set; }
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
public DateTime UpdatedAt { get; set; }
|
|
|
|
public IReadOnlyList<string> StrategyList =>
|
|
(Strategies ?? "").Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
|
|
}
|