ProductInShopList.cs 567 B

123456789101112131415161718192021222324
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace API.DBModel
  4. {
  5. [Table("ProductInShopList")]
  6. public class ProductInShopList
  7. {
  8. [Key]
  9. public int Id { get; set; }
  10. [ForeignKey("FK_ProductInShopList_shopping_lists")]
  11. public int id_shop_list { get; set; }
  12. [ForeignKey("FK_ProductInShopList_shopping_list_items")]
  13. public int id_product { get; set; }
  14. public double quantity { get; set; }
  15. public bool completed { get; set; }
  16. }
  17. }