diff --git a/DataModels/DataModels.csproj b/DataModels/DataModels.csproj index c60e651..fa71b7a 100644 --- a/DataModels/DataModels.csproj +++ b/DataModels/DataModels.csproj @@ -6,8 +6,4 @@ enable - - - - diff --git a/DataModels/IId.cs b/DataModels/IId.cs new file mode 100644 index 0000000..8b39a76 --- /dev/null +++ b/DataModels/IId.cs @@ -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; } + } +} \ No newline at end of file diff --git a/DataModels/Models/IRole.cs b/DataModels/Models/IRole.cs new file mode 100644 index 0000000..4c294fe --- /dev/null +++ b/DataModels/Models/IRole.cs @@ -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; } + } +} \ No newline at end of file diff --git a/DataModels/Models/IUser.cs b/DataModels/Models/IUser.cs new file mode 100644 index 0000000..7098f65 --- /dev/null +++ b/DataModels/Models/IUser.cs @@ -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; } + } +} \ No newline at end of file