2020-05-27 09:21:39 +00:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
2020-05-27 06:38:40 +00:00
|
|
|
namespace BuecherwurmAPI.Models
|
|
|
|
{
|
|
|
|
public class Book
|
|
|
|
{
|
|
|
|
public string Name {get; set;}
|
|
|
|
public string Author {get; set;}
|
|
|
|
public string Country {get; set;}
|
|
|
|
public string Link {get; set;}
|
|
|
|
public string Language {get; set;}
|
|
|
|
public int Pages {get; set;}
|
|
|
|
public int Year {get; set;}
|
2020-05-27 09:21:39 +00:00
|
|
|
[Key]
|
|
|
|
[Required]
|
2020-05-27 06:38:40 +00:00
|
|
|
public int ProductId { get; set; }
|
|
|
|
public CategoryEnum Category { get; set; }
|
|
|
|
public string ImageLink { get; set; }
|
|
|
|
public int LendTime {get; set;}
|
2020-05-27 09:21:39 +00:00
|
|
|
public LendTypeEnum LendType {get; set;}
|
2020-05-27 06:38:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|