comment system

This commit is contained in:
2023-08-09 17:34:18 +08:00
parent ce94a401d3
commit 7a44b7fd9c
17 changed files with 1152 additions and 65 deletions

View File

@@ -24,7 +24,7 @@ public class FlowerItem : ILocation
[Column("uid")]
[ForeignKey(nameof(Owner))]
[Required]
public required int OwnerId { get; set; }
public int OwnerId { get; set; }
/// <summary>
/// 所有人
@@ -37,14 +37,14 @@ public class FlowerItem : ILocation
/// </summary>
[Column("categoryid")]
[Required]
public required int CategoryId { get; set; }
public int CategoryId { get; set; }
/// <summary>
/// 花草名称
/// </summary>
[Column("name")]
[Required]
public required string Name { get; set; }
public string Name { get; set; } = null!;
/// <summary>
/// 购买时间
@@ -52,7 +52,7 @@ public class FlowerItem : ILocation
[Column("datebuy")]
[Required]
[JsonPropertyName("dateBuy")]
public required long DateBuyUnixTime { get; set; }
public long DateBuyUnixTime { get; set; }
/// <summary>
/// 购买花费