mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
18 lines
575 B
C#
18 lines
575 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Marechai.Database.Models
|
|
{
|
|
public class PeopleByDocument : BaseModel<long>
|
|
{
|
|
public int PersonId { get; set; }
|
|
public long DocumentId { get; set; }
|
|
[Column(TypeName = "char(3)")]
|
|
[Required]
|
|
public string RoleId { get; set; }
|
|
|
|
public virtual DocumentPerson Person { get; set; }
|
|
public virtual Document Document { get; set; }
|
|
public virtual DocumentRole Role { get; set; }
|
|
}
|
|
} |