Add data models
This commit is contained in:
parent
281bfa512b
commit
0c473d4484
6
Hotel/HotelDataModels/IId.cs
Normal file
6
Hotel/HotelDataModels/IId.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
namespace HotelDataModels;
|
||||||
|
|
||||||
|
public interface IId
|
||||||
|
{
|
||||||
|
int Id { get; }
|
||||||
|
}
|
7
Hotel/HotelDataModels/Models/ICleaning.cs
Normal file
7
Hotel/HotelDataModels/Models/ICleaning.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace HotelDataModels.Models;
|
||||||
|
|
||||||
|
public interface ICleaning : IId
|
||||||
|
{
|
||||||
|
DateTime Date { get; }
|
||||||
|
int RoomId { get; }
|
||||||
|
}
|
6
Hotel/HotelDataModels/Models/ICleaningInstruments.cs
Normal file
6
Hotel/HotelDataModels/Models/ICleaningInstruments.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
namespace HotelDataModels.Models;
|
||||||
|
|
||||||
|
public interface ICleaningInstruments : IId
|
||||||
|
{
|
||||||
|
string Type { get; }
|
||||||
|
}
|
8
Hotel/HotelDataModels/Models/IGuest.cs
Normal file
8
Hotel/HotelDataModels/Models/IGuest.cs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
namespace HotelDataModels.Models;
|
||||||
|
|
||||||
|
public interface IGuest : IId
|
||||||
|
{
|
||||||
|
string Name { get; }
|
||||||
|
string SecondName { get; }
|
||||||
|
string LastName { get; }
|
||||||
|
}
|
10
Hotel/HotelDataModels/Models/IMaitre.cs
Normal file
10
Hotel/HotelDataModels/Models/IMaitre.cs
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
namespace HotelDataModels.Models;
|
||||||
|
|
||||||
|
public interface IMaitre : IId
|
||||||
|
{
|
||||||
|
string Name { get; }
|
||||||
|
string SecondName { get; }
|
||||||
|
string LastName { get; }
|
||||||
|
string Login { get; }
|
||||||
|
string Password { get; }
|
||||||
|
}
|
9
Hotel/HotelDataModels/Models/IReservation.cs
Normal file
9
Hotel/HotelDataModels/Models/IReservation.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace HotelDataModels.Models;
|
||||||
|
|
||||||
|
public interface IReservation : IId
|
||||||
|
{
|
||||||
|
DateTime StartDate { get; }
|
||||||
|
DateTime EndDate { get; }
|
||||||
|
int GuestId { get; }
|
||||||
|
int MaitreId { get; }
|
||||||
|
}
|
7
Hotel/HotelDataModels/Models/IRoom.cs
Normal file
7
Hotel/HotelDataModels/Models/IRoom.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace HotelDataModels.Models;
|
||||||
|
|
||||||
|
public interface IRoom : IId
|
||||||
|
{
|
||||||
|
string Type { get; }
|
||||||
|
int Cost { get; }
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user