qol: formatting
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user