35 lines
980 B
C#
35 lines
980 B
C#
// <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>();
|
|
} |