RDBMS/RDBMS_lab4/Models/Post.cs
2024-05-12 17:52:28 +04:00

32 lines
929 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// <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>();
}