diff --git a/CarCenterDataModels/CarCenterDataModels.csproj b/CarCenterDataModels/CarCenterDataModels.csproj index cfadb03..a1ed5b3 100644 --- a/CarCenterDataModels/CarCenterDataModels.csproj +++ b/CarCenterDataModels/CarCenterDataModels.csproj @@ -1,4 +1,4 @@ - + net7.0 diff --git a/CarCenterDataModels/HelperInterfaces/IId.cs b/CarCenterDataModels/HelperInterfaces/IId.cs new file mode 100644 index 0000000..b8be95f --- /dev/null +++ b/CarCenterDataModels/HelperInterfaces/IId.cs @@ -0,0 +1,7 @@ +namespace CarCenterDataModels.HelperInterfaces +{ + public interface IId + { + int Id { get; } + } +} diff --git a/CarCenterDataModels/HelperInterfaces/IUser.cs b/CarCenterDataModels/HelperInterfaces/IUser.cs new file mode 100644 index 0000000..26d8107 --- /dev/null +++ b/CarCenterDataModels/HelperInterfaces/IUser.cs @@ -0,0 +1,14 @@ +namespace CarCenterDataModels.HelperInterfaces +{ + public interface IUser : IId + { + string FirstName { get; } + string LastName { get; } + + string Login { get; } + + string Password { get; } + + string PhoneNumber { get; } + } +} diff --git a/CarCenterDataModels/IAccountModel.cs b/CarCenterDataModels/IAccountModel.cs new file mode 100644 index 0000000..bb4ccb8 --- /dev/null +++ b/CarCenterDataModels/IAccountModel.cs @@ -0,0 +1,10 @@ +using CarCenterDataModels.HelperInterfaces; + +namespace CarCenterDataModels +{ + public interface IAccountModel : IId + { + int ClientByCarId { get; } + double Price { get; } + } +} diff --git a/CarCenterDataModels/ICarModel.cs b/CarCenterDataModels/ICarModel.cs new file mode 100644 index 0000000..498e441 --- /dev/null +++ b/CarCenterDataModels/ICarModel.cs @@ -0,0 +1,16 @@ +using CarCenterDataModels.HelperInterfaces; +using CarCenterDataModels.ProxyModels; + +namespace CarCenterDataModels +{ + public interface ICarModel : IId + { + int ImplementerId { get; } + + string Name { get; } + + double Price { get; } + + Dictionary ClientsModel { get; } + } +} diff --git a/CarCenterDataModels/IImplementerModel.cs b/CarCenterDataModels/IImplementerModel.cs new file mode 100644 index 0000000..d678f7d --- /dev/null +++ b/CarCenterDataModels/IImplementerModel.cs @@ -0,0 +1,8 @@ +using CarCenterDataModels.HelperInterfaces; + +namespace CarCenterDataModels +{ + public interface IImplementerModel : IUser + { + } +} diff --git a/CarCenterDataModels/ProxyModels/ClientByCarModel.cs b/CarCenterDataModels/ProxyModels/ClientByCarModel.cs new file mode 100644 index 0000000..baabfaf --- /dev/null +++ b/CarCenterDataModels/ProxyModels/ClientByCarModel.cs @@ -0,0 +1,11 @@ +namespace CarCenterDataModels.ProxyModels +{ + public class ClientByCarModel + { + public virtual int Id { get; set; } + public virtual int ClientId { get; set; } + public virtual int CarId { get; set; } + + public virtual DateTime DateOfClient { get; set; } + } +}