Changeset 057037b for backend/Entities


Ignore:
Timestamp:
04/11/22 15:29:19 (3 years ago)
Author:
Danilo <danilo.najkov@…>
Branches:
master
Children:
7a983b0
Parents:
b66b3ac
Message:

backend full

Location:
backend/Entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • backend/Entities/Reservation.cs

    rb66b3ac r057037b  
    1 namespace backend.Entities
     1using Newtonsoft.Json;
     2
     3namespace backend.Entities
    24{
    35    public class Reservation
     
    57        public int Id { get; set; }
    68        public DateTime StartDate { get; set; }
     9        public int Persons { get; set; }
    710        public virtual Restaurant Restaurant { get; set; }
    811        public ReservationPlace ReservationPlace { get; set; }
  • backend/Entities/Restaurant.cs

    rb66b3ac r057037b  
    1 namespace backend.Entities
     1using Newtonsoft.Json;
     2
     3namespace backend.Entities
    24{
    35    public class Restaurant
  • backend/Entities/User.cs

    rb66b3ac r057037b  
     1using Newtonsoft.Json;
     2
    13namespace backend.Entities;
    24
     
    46{
    57    public int Id { get; set; }
    6     public string Username { get; set; }
     8    public string Email { get; set; }
    79    public string Password { get; set; }
     10    [JsonIgnore]
    811    public virtual Restaurant Restaurant { get; set; }
    912}
Note: See TracChangeset for help on using the changeset viewer.