qol: formatting

This commit is contained in:
Gary Sharp
2025-07-20 13:47:56 +10:00
parent 49da389c2c
commit 5792771ea1
158 changed files with 693 additions and 679 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
namespace Disco.Models.Repository
{
@@ -51,7 +51,7 @@ namespace Disco.Models.Repository
[InverseProperty(nameof(Job.Device))]
public virtual IList<Job> Jobs { get; set; }
public virtual IList<DeviceFlagAssignment> DeviceFlagAssignments { get; set; }
[InverseProperty(nameof(DeviceComment.Device))]
public virtual IList<DeviceComment> DeviceComments { get; set; }
@@ -15,10 +15,10 @@ namespace Disco.Models.Repository
public DateTime Timestamp { get; set; }
[Required]
public string Comments { get; set; }
[ForeignKey(nameof(DeviceSerialNumber))]
public Device Device { get; set; }
[ForeignKey(nameof(TechUserId))]
public User TechUser { get; set; }
}
@@ -12,10 +12,10 @@ namespace Disco.Models.Repository
[StringLength(100)]
public string Description { get; set; }
public decimal Cost { get; set; }
[ForeignKey("DeviceModelId")]
public virtual DeviceModel DeviceModel { get; set; }
public virtual IList<JobSubType> JobSubTypes { get; set; }
}
}
@@ -24,13 +24,13 @@ namespace Disco.Models.Repository
[Column(Order = 0), Key]
public string DeviceSerialNumber { get; set; }
[Key, StringLength(100), Column(Order = 2)]
public string Key { get; set; }
[Column(Order = 1), StringLength(100), Key]
public string Scope { get; set; }
public string Value { get; set; }
[ForeignKey("DeviceSerialNumber")]
@@ -23,7 +23,7 @@ namespace Disco.Models.Repository
// 2012-06-14 G#
[Required, DataType(DataType.MultilineText)]
public string ComputerNameTemplate { get; set; }
[Required]
public DistributionTypes? DistributionType { get; set; }