version up

This commit is contained in:
2023-07-31 17:11:39 +08:00
parent befbc7fc9b
commit 8419c9d389
41 changed files with 1053 additions and 286 deletions

View File

@@ -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; }
}