mirror of
https://github.com/claunia/marechai.git
synced 2026-07-08 17:57:08 +00:00
31 lines
1.3 KiB
C#
31 lines
1.3 KiB
C#
|
|
using System.Collections.Generic;
|
||
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
using Marechai.Data;
|
||
|
|
|
||
|
|
namespace Marechai.Database.Models;
|
||
|
|
|
||
|
|
public class SoftwareCompilation : BaseModel<ulong>
|
||
|
|
{
|
||
|
|
[Required]
|
||
|
|
public string Name { get; set; }
|
||
|
|
|
||
|
|
public ulong? SoftwareId { get; set; }
|
||
|
|
public virtual Software Software { get; set; }
|
||
|
|
|
||
|
|
public int? MachineId { get; set; }
|
||
|
|
public virtual Machine Machine { get; set; }
|
||
|
|
|
||
|
|
public ulong? PredecessorId { get; set; }
|
||
|
|
public virtual SoftwareCompilation Predecessor { get; set; }
|
||
|
|
public SoftwareRelationshipType RelationshipType { get; set; } = SoftwareRelationshipType.Sequel;
|
||
|
|
public virtual ICollection<SoftwareCompilation> Successors { get; set; }
|
||
|
|
|
||
|
|
public virtual ICollection<SoftwareRelease> Releases { get; set; }
|
||
|
|
public virtual ICollection<SoftwareCover> Covers { get; set; }
|
||
|
|
|
||
|
|
public virtual ICollection<SoftwareBySoftwareCompilation> IncludedSoftware { get; set; }
|
||
|
|
public virtual ICollection<SoftwareVersionBySoftwareCompilation> IncludedVersions { get; set; }
|
||
|
|
public virtual ICollection<SoftwareCompilationBySoftwareCompilation> IncludedCompilations { get; set; }
|
||
|
|
public virtual ICollection<SoftwareCompilationBySoftwareCompilation> ContainingCompilations { get; set; }
|
||
|
|
}
|