using System; using SqlSugar; namespace WmsLite.Api.Models; public class BaseEntity { [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = false)] public long Id { get; set; } [SugarColumn(ColumnName = "tenant_id", Length = 64, IsNullable = false)] public string TenantId { get; set; } = string.Empty; [SugarColumn(ColumnName = "owner_code", Length = 64, IsNullable = false)] public string OwnerCode { get; set; } = string.Empty; [SugarColumn(ColumnName = "create_time", IsNullable = true)] public DateTime? CreateTime { get; set; } [SugarColumn(ColumnName = "create_by", IsNullable = true)] public string? CreateBy { get; set; } [SugarColumn(ColumnName = "update_by", IsNullable = true)] public string? UpdateBy { get; set; } [SugarColumn(ColumnName = "update_time", IsNullable = true)] public DateTime? UpdateTime { get; set; } [SugarColumn(ColumnName = "is_deleted")] public bool IsDeleted { get; set; } = false; [SugarColumn(ColumnName = "delete_time", IsNullable = true)] public DateTime? DeleteTime { get; set; } [SugarColumn(ColumnName = "delete_by", IsNullable = true)] public string? DeleteBy { get; set; } }