Implement API security baseline (sys_user, JWT, audit fields, transactions, unique constraints) and Web real login with 401 handling. Document setup and development workflows in root, WmsLite.Api, and WmsLite.Web README files. Co-authored-by: Cursor <cursoragent@cursor.com>
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
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; }
|
|
}
|