2020-05-28 08:55:56 +00:00
|
|
|
using System;
|
2020-06-03 07:26:07 +00:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2020-05-28 08:55:56 +00:00
|
|
|
|
|
|
|
namespace BuecherwurmAPI.Models
|
|
|
|
{
|
|
|
|
public class Lend
|
|
|
|
{
|
2020-06-03 07:26:07 +00:00
|
|
|
[Key, Required]
|
2020-05-28 14:14:36 +00:00
|
|
|
public long Id { get; set; }
|
2020-06-03 07:26:07 +00:00
|
|
|
[Required]
|
2020-05-28 14:14:36 +00:00
|
|
|
public long ItemId { get; set;}
|
2020-06-03 07:26:07 +00:00
|
|
|
[Required]
|
2020-05-28 08:55:56 +00:00
|
|
|
public DateTime ReturnDate { get; set; }
|
2020-06-03 07:26:07 +00:00
|
|
|
[Required]
|
2020-05-28 08:55:56 +00:00
|
|
|
public string Customer { get; set; }
|
2020-06-03 07:26:07 +00:00
|
|
|
[Required]
|
2020-05-28 08:55:56 +00:00
|
|
|
public bool Returned { get; set; }
|
|
|
|
}
|
2020-06-03 07:26:07 +00:00
|
|
|
|
2020-06-03 08:55:39 +00:00
|
|
|
public class LendPost
|
2020-06-03 07:26:07 +00:00
|
|
|
{
|
|
|
|
public long ItemId {get; set;}
|
|
|
|
|
|
|
|
public DateTime ReturnDate {get; set;}
|
|
|
|
|
|
|
|
public string Customer {get; set;}
|
|
|
|
}
|
2020-05-28 12:21:06 +00:00
|
|
|
}
|