using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DD.Persistence.Database.Entity; /// /// Таблица c коммитами пользователей /// [Table("change_log_commit")] public class ChangeLogCommit { [Key, Comment("Id коммита")] public Guid Id { get; set; } [Comment("Пользователь, создавший коммит")] public Guid IdAuthor { get; set; } [Comment("Дата создания коммита")] public DateTimeOffset Creation { get; set; } [Comment("Комментарий к коммиту")] public required string Comment { get; set; } [Required, InverseProperty(nameof(ChangeLog.Commit)), Comment("Журнал изменений")] public virtual ICollection ChangeLogItems { get; set; } = null!; }