using CommunityToolkit.Mvvm.ComponentModel;
using SqlSugar;
namespace YZWater.Core.Models;
///
/// 流量记录模型
///
[SugarTable("flow_records")]
public partial class FlowRecord : ObservableObject
{
///
/// 主键 ID
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
///
/// 记录时间
///
public DateTime RecordTime { get; set; } = DateTime.Now;
///
/// 进水流量 (m³/h)
///
[ObservableProperty]
private float _inflowRate;
///
/// 出水流量 (m³/h)
///
[ObservableProperty]
private float _outflowRate;
///
/// 累计进水量 (m³)
///
[ObservableProperty]
private float _totalInflow;
///
/// 累计出水量 (m³)
///
[ObservableProperty]
private float _totalOutflow;
///
/// 备注
///
[ObservableProperty]
[property: SugarColumn(IsNullable = true)]
private string? _remark;
}