// This file has been auto generated by EF Core Power Tools. #nullable disable using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; namespace RDBMS_lab4.Models; /// /// Таблица услуг /// [Table("services")] [Index("Name", Name = "services_name_name1_key", IsUnique = true)] public partial class Service { [Key] [Column("id")] public int Id { get; set; } [Column("price")] public decimal Price { get; set; } [Column("duration")] public TimeSpan Duration { get; set; } [Required] [Column("name")] public string Name { get; set; } [InverseProperty("Service")] public virtual ICollection Timetables { get; set; } = new List(); [ForeignKey("Serviceid")] [InverseProperty("Services")] public virtual ICollection Posts { get; set; } = new List(); }