using BPA.KitChen.GroupMealOrder.Core.Common.Const;
using BPA.KitChen.GroupMealOrder.Core.Entity.Base;
using Furion;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BPA.KitChen.GroupMealOrder.Core.Entity
{
///
/// 称重订单状态变更记录
///
[SugarTable("bpa_weighorderstatesrecord")]
public class BPA_WeighOrderStatesRecord : IBaseGroupIdEntity
{
///
/// 主键 Guid
///
[SugarColumn(IsPrimaryKey = true, ColumnDataType = "Nvarchar(64)", IsNullable = false)]
public string Id { get; set; } = Guid.NewGuid().ToString();
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "GroupId", IsNullable = true)]
public string GroupId { get; set; } = App.User?.FindFirst(ClaimConst.GroupId)?.Value;
///
/// 订单编号
///
public string OrderId { get; set; }
///
/// 变更前
///
public int BeforeTheChange { get; set; }
///
/// 变更后
///
public int AfterTheChange { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnDataType = "DateTime", ColumnDescription = "创建时间", IsNullable = true)]
public DateTime CreateAt { get; set; } = DateTime.Now;
///
/// 创建人
///
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "创建人", IsNullable = true)]
public string CreateBy { get; set; }
}
}