Split the backend into API host, Domain, Application and Infrastructure projects. Add Swagger/OpenAPI per API version, Asp.Versioning (query/header), ProblemDetails with a global exception handler and SurrealQL migrations applied at startup (namespace/database ensured). Infrastructure owns the SurrealDB client, settings and DI.
11 lines
118 B
C#
11 lines
118 B
C#
namespace TarninaHub.Domain.Enums;
|
|
|
|
public enum UserRole
|
|
{
|
|
User,
|
|
Jst,
|
|
Operator,
|
|
Manager,
|
|
Admin,
|
|
}
|