32 lines
929 B
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("posts")]
[Index("Name", Name = "posts_name_name1_key", IsUnique = true)]
public partial class Post
{
[Key]
[Column("id")]
public int Id { get; set; }
[Required]
[Column("name")]
public string Name { get; set; }
[InverseProperty("Post")]
public virtual ICollection<Worker> Workers { get; set; } = new List<Worker>();
[ForeignKey("Postid")]
[InverseProperty("Posts")]
public virtual ICollection<Service> Services { get; set; } = new List<Service>();
}