stylist / backend / Stylist.Data / Models / Entities / Service.cs
Service.cs
Raw
using Stylist.Data.Enums;

namespace Stylist.Data.Models.Entities
{
    public class Service
    {
        public int Id { get; init; }
        public string Name { get; set; } = null!;
        public string? Description { get; set; }
        public int Duration { get; set; }
        public double Price { get; set; }
        public Gender Gender { get; set; }
        public int SalonId { get; set; }
        public Salon Salon { get; set; } = null!;
        public ICollection<HairdresserService> HairdresserServices { get; set; } = [];
        public ICollection<Reservation> Reservations { get; set; } = [];
        public ICollection<ServiceMainService> ServiceMainServices { get; set; } = [];
    }
}