version up
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using SQLite;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Blahblah.FlowerApp.Data.Model;
|
||||
|
||||
[Table("records")]
|
||||
public class RecordItem
|
||||
{
|
||||
[Column("rid"), PrimaryKey, NotNull]
|
||||
@@ -14,9 +16,9 @@ public class RecordItem
|
||||
public int FlowerId { get; set; }
|
||||
|
||||
[Column("event"), NotNull]
|
||||
public int EventType { get; set; }
|
||||
public int EventId { get; set; }
|
||||
|
||||
[Column("date"), NotNull]
|
||||
[Column("date"), JsonPropertyName("date"), NotNull]
|
||||
public long DateUnixTime { get; set; }
|
||||
|
||||
[Column("byuid")]
|
||||
@@ -33,4 +35,7 @@ public class RecordItem
|
||||
|
||||
[Column("longitude")]
|
||||
public double? Longitude { get; set; }
|
||||
|
||||
[Ignore]
|
||||
public PhotoItem[]? Photos { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user