33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
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;
|
|
|
|
/// <summary>
|
|
/// Таблица c коммитами пользователей
|
|
/// </summary>
|
|
[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<ChangeLog> ChangeLogItems { get; set; } = null!;
|
|
}
|