RDBMS/RDBMS_lab4/Models/Worker.cs

35 lines
980 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("workers")]
[Index("Postid", Name = "fki_workers_postid_fkey")]
public partial class Worker
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("postid")]
public int Postid { get; set; }
[Required]
[Column("name")]
public string Name { get; set; }
[ForeignKey("Postid")]
[InverseProperty("Workers")]
public virtual Post Post { get; set; }
[InverseProperty("Worker")]
public virtual ICollection<Timetable> Timetables { get; set; } = new List<Timetable>();
}