RDBMS/RDBMS_lab4/Models/Service.cs

38 lines
1.0 KiB
C#
Raw Permalink Normal View History

2024-05-12 17:52:28 +04:00
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace RDBMS_lab4.Models;
/// <summary>
/// Таблица услуг
/// </summary>
[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<Timetable> Timetables { get; set; } = new List<Timetable>();
[ForeignKey("Serviceid")]
[InverseProperty("Services")]
public virtual ICollection<Post> Posts { get; set; } = new List<Post>();
}