Refactor code structure for improved readability and maintainability
This commit is contained in:
21
Models/ServiceRoleDefinitionModel.cs
Normal file
21
Models/ServiceRoleDefinitionModel.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Models
|
||||
{
|
||||
public class ServiceRoleDefinitionModel : BaseModel
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public Guid ServiceId { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 3)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 4)]
|
||||
public string? Description { get; set; }
|
||||
|
||||
public ServiceModel Service { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user