User.cs 382 B

123456789101112131415161718
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. namespace API.DBModel
  4. {
  5. [Table("User")]
  6. public class User
  7. {
  8. [Key]
  9. public int id { get; set; }
  10. public string? username { get; set; }
  11. public string? password { get; set; }
  12. List<ShoppingList>? shoppingLists { get; set; }
  13. }
  14. }