Add WmsLite monorepo with JWT auth, tenant context, and project READMEs.
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>
This commit is contained in:
commit
fa1b286463
241 files changed
+31188
No files matched your search
@@ -0,0 +1,37 @@
|
||||
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; }
|
||||
}
|
||||
Reference in new issue
Block a user