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>
23 lines
463 B
C#
23 lines
463 B
C#
namespace WmsLite.Api.Infrastructure;
|
|
|
|
public class DatabaseOptions
|
|
{
|
|
public const string SectionName = "Database";
|
|
|
|
public CodeFirstOptions CodeFirst { get; set; } = new();
|
|
|
|
public MigrationOptions Migrations { get; set; } = new();
|
|
}
|
|
|
|
public class CodeFirstOptions
|
|
{
|
|
public bool Enabled { get; set; }
|
|
}
|
|
|
|
public class MigrationOptions
|
|
{
|
|
public bool Enabled { get; set; }
|
|
|
|
public string ConnectionStringName { get; set; } = "PostgreSql";
|
|
}
|