Add people by book.

This commit is contained in:
2019-06-17 03:02:47 +01:00
parent c9c88351e2
commit df5d28d6a4
8 changed files with 12763 additions and 6879 deletions

View File

@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Cicm.Database.Models
{
public class PeopleByBook : BaseModel<long>
{
public int PersonId { get; set; }
public long BookId { get; set; }
[Column(TypeName = "char(3)")]
[Required]
public string RoleId { get; set; }
public virtual DocumentPerson Person { get; set; }
public virtual Book Book { get; set; }
public virtual DocumentRole Role { get; set; }
}
}