mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Major refactor and cleanup.
This commit is contained in:
@@ -27,40 +27,39 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Marechai.Database.Models
|
||||
{
|
||||
public class SoftwareVariant : BaseModel<ulong>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Version { get; set; }
|
||||
public DateTime? Introduced { get; set; }
|
||||
public virtual SoftwareVariant Parent { get; set; }
|
||||
[Required]
|
||||
public virtual SoftwareVersion SoftwareVersion { get; set; }
|
||||
public ulong? MinimumMemory { get; set; }
|
||||
public ulong? RecommendedMemory { get; set; }
|
||||
public ulong? RequiredStorage { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
public string SerialNumber { get; set; }
|
||||
public string ProductCode { get; set; }
|
||||
public string CatalogueNumber { get; set; }
|
||||
public DistributionMode DistributionMode { get; set; }
|
||||
namespace Marechai.Database.Models;
|
||||
|
||||
public virtual ICollection<SoftwareVariant> Derivates { get; set; }
|
||||
public virtual ICollection<CompaniesBySoftwareVariant> Companies { get; set; }
|
||||
public virtual ICollection<GpusBySoftwareVariant> Gpus { get; set; }
|
||||
public virtual ICollection<InstructionSetsBySoftwareVariant> Architectures { get; set; }
|
||||
public virtual ICollection<LanguagesBySoftwareVariant> Languages { get; set; }
|
||||
public virtual ICollection<MachineFamiliesBySoftwareVariant> MachineFamilies { get; set; }
|
||||
public virtual ICollection<MachinesBySoftwareVariant> Machines { get; set; }
|
||||
public virtual ICollection<MediaBySoftwareVariant> Media { get; set; }
|
||||
public virtual ICollection<PeopleBySoftwareVariant> People { get; set; }
|
||||
public virtual ICollection<ProcessorsBySoftwareVariant> Processors { get; set; }
|
||||
public virtual ICollection<RequiredOperatingSystemsBySofwareVariant> RequiredOperatingSystems { get; set; }
|
||||
public virtual ICollection<RequiredSoftwareBySoftwareVariant> RequiredSoftware { get; set; }
|
||||
public virtual ICollection<SoundBySoftwareVariant> SupportedSound { get; set; }
|
||||
public virtual ICollection<StandaloneFile> Files { get; set; }
|
||||
public ulong? ParentId { get; set; }
|
||||
public ulong SoftwareVersionId { get; set; }
|
||||
}
|
||||
public class SoftwareVariant : BaseModel<ulong>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Version { get; set; }
|
||||
public DateTime? Introduced { get; set; }
|
||||
public virtual SoftwareVariant Parent { get; set; }
|
||||
[Required]
|
||||
public virtual SoftwareVersion SoftwareVersion { get; set; }
|
||||
public ulong? MinimumMemory { get; set; }
|
||||
public ulong? RecommendedMemory { get; set; }
|
||||
public ulong? RequiredStorage { get; set; }
|
||||
public string PartNumber { get; set; }
|
||||
public string SerialNumber { get; set; }
|
||||
public string ProductCode { get; set; }
|
||||
public string CatalogueNumber { get; set; }
|
||||
public DistributionMode DistributionMode { get; set; }
|
||||
|
||||
public virtual ICollection<SoftwareVariant> Derivates { get; set; }
|
||||
public virtual ICollection<CompaniesBySoftwareVariant> Companies { get; set; }
|
||||
public virtual ICollection<GpusBySoftwareVariant> Gpus { get; set; }
|
||||
public virtual ICollection<InstructionSetsBySoftwareVariant> Architectures { get; set; }
|
||||
public virtual ICollection<LanguagesBySoftwareVariant> Languages { get; set; }
|
||||
public virtual ICollection<MachineFamiliesBySoftwareVariant> MachineFamilies { get; set; }
|
||||
public virtual ICollection<MachinesBySoftwareVariant> Machines { get; set; }
|
||||
public virtual ICollection<MediaBySoftwareVariant> Media { get; set; }
|
||||
public virtual ICollection<PeopleBySoftwareVariant> People { get; set; }
|
||||
public virtual ICollection<ProcessorsBySoftwareVariant> Processors { get; set; }
|
||||
public virtual ICollection<RequiredOperatingSystemsBySofwareVariant> RequiredOperatingSystems { get; set; }
|
||||
public virtual ICollection<RequiredSoftwareBySoftwareVariant> RequiredSoftware { get; set; }
|
||||
public virtual ICollection<SoundBySoftwareVariant> SupportedSound { get; set; }
|
||||
public virtual ICollection<StandaloneFile> Files { get; set; }
|
||||
public ulong? ParentId { get; set; }
|
||||
public ulong SoftwareVersionId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user