summaryrefslogtreecommitdiff
path: root/Models/Book.cs
blob: d648c1278a243257f997fac7c92e25a3f11e9d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace LibraryAPI.Models {
    public class Book {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }
        public DateTime PublicationDate { get; set; }

        public string[] Genres { get; set; }
        public int Edition { get; set; }
        public string ISBN { get; set; }
    }
}