123456789101112131415161718 |
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace API.DBModel
- {
- [Table("shopping_lists")]
- public class ShoppingList
- {
- [Key]
- public int Id { get; set; }
- public string? Name { get; set; }
- [ForeignKey("FK_shopping_lists_User")]
- public int id_user { get; set; }
- List<ProductInShopList>? productInShopLists { get; set; }
- }
- }
|