d11f0e46c0
clean up and fixes - Heute gefixt - Code Cleanup NotificationScheduleItemViewModel -fixed NotificationScheduleItemViewModel for Windows compat push implementation Push fixes Push benachrichtungen eingebaut - Status bei push - Push auch in background - Toggle für symtome angepasst push system change exporter update Optionen fix - Optionen aufgeteilt auf 3 tabs - Anpassungen haben jetzt Farbslider Optimierung fix
41 lines
858 B
C#
41 lines
858 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 int? ActivityDurationMinutes { 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;
|
|
}
|
|
}
|