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-09 17:24:30 +05:00
|
|
|
|
[Column("id_file"), Comment("id файла")]
|
|
|
|
|
public int IdFile { get; set; }
|
|
|
|
|
|
2021-11-03 14:12:39 +05:00
|
|
|
|
[Column("id_mark_type"), Comment("0 - Согласован")]
|
|
|
|
|
public int IdMarkType { get; set; }
|
2021-11-01 16:41:25 +05:00
|
|
|
|
|
2021-12-27 10:53:18 +05:00
|
|
|
|
[Column("date_created", TypeName = "timestamp with time zone"), Comment("Дата совершенного действия")]
|
2021-12-30 10:45:06 +05:00
|
|
|
|
public DateTimeOffset DateCreated { get; set; }
|
2021-11-01 16:41:25 +05:00
|
|
|
|
|
|
|
|
|
[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))]
|
2021-11-09 17:24:30 +05:00
|
|
|
|
public virtual User User { get; set; }
|
2021-11-01 16:41:25 +05:00
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
[ForeignKey(nameof(IdFile))]
|
|
|
|
|
public virtual FileInfo FileInfo { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|