2021-11-01 16:41:25 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
|
|
|
|
[Table("t_file_mark"), Comment("Действия с файлами.")]
|
|
|
|
|
public class FileMark
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2021-11-02 16:33:49 +05:00
|
|
|
|
[Column("id_mark"), Comment("0 - Согласован, \n1 - Уже внесен в программу бурения")]
|
2021-11-01 16:41:25 +05:00
|
|
|
|
public int IdMark { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("date_created"), Comment("Дата совершенного действия")]
|
|
|
|
|
public DateTime DateCreated { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("id_file"), Comment("id файла")]
|
|
|
|
|
public int IdFile { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("id_user"), Comment("id пользователя")]
|
|
|
|
|
public int IdUser { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("comment"), Comment("Комментарий")]
|
|
|
|
|
[StringLength(255)]
|
|
|
|
|
public string Comment { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("is_deleted"), Comment("Помечен ли файл как удаленный")]
|
|
|
|
|
public bool IsDeleted { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
[ForeignKey(nameof(IdUser))]
|
|
|
|
|
public virtual User Author { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
[ForeignKey(nameof(IdFile))]
|
|
|
|
|
public virtual FileInfo FileInfo { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|