Role interfaces

This commit is contained in:
mfnefd 2024-06-04 11:03:49 +04:00
parent cc2fa7bdf3
commit 59857d80f3
4 changed files with 44 additions and 4 deletions

View File

@ -6,8 +6,4 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
</ItemGroup>
</Project> </Project>

13
DataModels/IId.cs Normal file
View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataModels
{
public interface IId
{
Guid Id { get; }
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataModels.Models
{
public interface IRole : IId
{
string Name { get; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataModels.Models
{
public interface IUser : IId
{
string FirstName { get; }
string SecondName { get; }
string PasswordHash { get; }
string Email { get; }
DateTime Birthday { get; }
Guid RoleId { get; }
}
}