using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; namespace LCU.API.Internal.RepoApi.Repos.Models { public class Collateral { [Required] public int CollateralId { get; set; } [Required] public int RepoId { get; set; } public string? Vin { get; set; } public string? Make { get; set; } public string? Model { get; set; } public int? Year { get; set; } public string? Description { get; set; } public int? VehicleType { get; set; } public string? BodyStyle { get; set; } public bool? Inoperable { get; set; } public int? CollateralTypeId { get; set; } public DateTime? RetitledInLandmarkName { get; set; } public string? RefCollateralId { get; set; } [ForeignKey("CollateralId")] public IReadOnlyCollection RepoCompanySelections { get; set; } [ForeignKey("RepoId")] [JsonIgnore] public RepoAccount RepoAccount { get; set; } [JsonIgnore] public IEnumerable AuctionAssignmentToCollaterals { get; set; } } }