Merge pull request 'Role interfaces' (#2) from dev into registration

Reviewed-on: #2
This commit is contained in:
mfnefd 2024-06-04 11:48:33 +04:00
commit 5e0fb33ebe
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; }
}
}