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
This commit is contained in:
+31
-3
@@ -1,11 +1,39 @@
|
||||
using SQLite;
|
||||
|
||||
namespace cfs_tracker.Models;
|
||||
|
||||
[Table("HealthEntries")]
|
||||
public class HealthEntry
|
||||
{
|
||||
[PrimaryKey, AutoIncrement] public int Id { get; set; }
|
||||
[Indexed] public DateTime Timestamp { get; set; }
|
||||
[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? ActivityId { 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user