stylist / backend / Stylist.Data / Models / Entities / Salon.cs
Salon.cs
Raw
using Stylist.Data.Enums;
using System.ComponentModel.DataAnnotations;

namespace Stylist.Data.Models.Entities
{
    public class Salon
    {
        public int Id { get; init; }
        [MaxLength(50)]
        public string Name { get; set; } = null!;
        [MaxLength(50)]
        public string Adress { get; set; } = null!;
        public string? AdressUrl { get; set; }
        [MaxLength(500)]
        public string? Description { get; set; }
        [MaxLength(20)]
        public string? PhoneNumber { get; set; }
        [MaxLength(50)]
        public string? WebsiteUrl { get; set; }
        public string? ImageUrls { get; set; }
        public Gender Gender { get; set; }
        public ICollection<Review> Reviews { get; set; } = [];
        public ICollection<Service> Services { get; set; } = [];
        public ICollection<WorkingHour> WorkingHours { get; set; } = [];

    }
}