buechermarkt/BuechermarktClient/Models/Book.cs
Fabian Stamm d5f81e3348 Changes
2017-09-27 15:57:10 +02:00

36 lines
728 B
C#

using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
using System;
namespace BuechermarktClient.Models
{
public class Book
{
[BsonId]
public ObjectId ID { get; set; }
[BsonElement("student")]
public ObjectId Student { get; set; }
[BsonElement("book_type")]
public ObjectId BookType { get; set; }
[BsonElement("price")]
public double Price { get; set; }
[BsonElement("state")]
public BookState State { get; set; }
[BsonElement("label_id")]
public string LabelId { get; set; }
}
public enum BookState
{
InStock,
Selled,
BackToStudent,
Missing
}
}