Major refactor and cleanup.

This commit is contained in:
2025-11-13 04:05:35 +00:00
parent 1d67081792
commit 8f6d334af4
833 changed files with 86800 additions and 74355 deletions

View File

@@ -26,26 +26,25 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Marechai.Database.Models
{
public class Book : DocumentBase
{
[StringLength(13, MinimumLength = 10)]
public string Isbn { get; set; }
public short? Pages { get; set; }
public int? Edition { get; set; }
public long? PreviousId { get; set; }
public long? SourceId { get; set; }
namespace Marechai.Database.Models;
public virtual Book Previous { get; set; }
public virtual Book Source { get; set; }
public virtual Book Next { get; set; }
public virtual Iso31661Numeric Country { get; set; }
public virtual ICollection<Book> Derivates { get; set; }
public virtual ICollection<CompaniesByBook> Companies { get; set; }
public virtual ICollection<PeopleByBook> People { get; set; }
public virtual ICollection<BooksByMachine> Machines { get; set; }
public virtual ICollection<BooksByMachineFamily> MachineFamilies { get; set; }
public virtual ICollection<BookScan> Scans { get; set; }
}
public class Book : DocumentBase
{
[StringLength(13, MinimumLength = 10)]
public string Isbn { get; set; }
public short? Pages { get; set; }
public int? Edition { get; set; }
public long? PreviousId { get; set; }
public long? SourceId { get; set; }
public virtual Book Previous { get; set; }
public virtual Book Source { get; set; }
public virtual Book Next { get; set; }
public virtual Iso31661Numeric Country { get; set; }
public virtual ICollection<Book> Derivates { get; set; }
public virtual ICollection<CompaniesByBook> Companies { get; set; }
public virtual ICollection<PeopleByBook> People { get; set; }
public virtual ICollection<BooksByMachine> Machines { get; set; }
public virtual ICollection<BooksByMachineFamily> MachineFamilies { get; set; }
public virtual ICollection<BookScan> Scans { get; set; }
}