Files
cfs-Tracker/Models/HealthEntry.cs
T
Djagor d85f2e0fb3 Farbpalette vorladen lassen
Bootstraper läd jetzt die farbeinstellung sofort und nicht nachträglich

cleanup and rework

PDF switch to HTML

export fix

Colorsystem

Farben für knöpfe hinzugefügt als anpassung

button color

button color primary and secondary change
2026-03-24 21:59:59 +01:00

40 lines
804 B
C#

using SQLite;
namespace cfs_tracker.Models;
[Table("HealthEntries")]
public class HealthEntry
{
[PrimaryKey, AutoIncrement]
public int Id { get; set; }
[Indexed]
public DateTime EntryDate { get; set; }
[Indexed]
public DateTime Timestamp { get; set; }
[Indexed]
public HealthState State { get; set; }
[Indexed]
public EntrySource Source { get; set; }
[Indexed]
public int? DayPartValue { get; set; }
[Indexed]
public int? ActivityId { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
[Ignore]
public DayPart? DayPart
{
get => DayPartValue.HasValue ? (DayPart)DayPartValue.Value : null;
set => DayPartValue = value.HasValue ? (int)value.Value : null;
}
}