mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Move old owned_computers and owned_consoles tables to a new OwnedMachines table
with corresponding GPUs, memory, processors, sound synths and storage related tables.
This commit is contained in:
29
Cicm.Database/Models/OwnedMachine.cs
Normal file
29
Cicm.Database/Models/OwnedMachine.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Cicm.Database.Models
|
||||
{
|
||||
public class OwnedMachine : BaseModel<long>
|
||||
{
|
||||
public DateTime AcquisitionDate { get; set; }
|
||||
public DateTime? LostDate { get; set; }
|
||||
public StatusType Status { get; set; }
|
||||
public DateTime? LastStatusDate { get; set; }
|
||||
public bool Trade { get; set; }
|
||||
public bool Boxed { get; set; }
|
||||
public bool Manuals { get; set; }
|
||||
public string SerialNumber { get; set; }
|
||||
public bool SerialNumberVisible { get; set; }
|
||||
public int MachineId { get; set; }
|
||||
|
||||
public virtual ICollection<GpusByOwnedMachine> Gpus { get; set; }
|
||||
public virtual ICollection<MemoryByOwnedMachine> Memory { get; set; }
|
||||
public virtual ICollection<ProcessorsByOwnedMachine> Processors { get; set; }
|
||||
public virtual ICollection<SoundByOwnedMachine> Sound { get; set; }
|
||||
public virtual ICollection<StorageByOwnedMachine> Storage { get; set; }
|
||||
public virtual ICollection<OwnedMachinePhoto> Photos { get; set; }
|
||||
|
||||
public virtual ApplicationUser User { get; set; }
|
||||
public virtual Machine Machine { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user