mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Update DB to version 16: Machines can have an arbitrary number of gpus,
so use an interconnection table, `gpus_by_machine`.
This commit is contained in:
@@ -43,7 +43,7 @@ namespace cicm_web.Models
|
||||
public Company Company;
|
||||
public DiskFormat Disk1;
|
||||
public DiskFormat Disk2;
|
||||
public Gpu Gpu;
|
||||
public GpuByMachine[] Gpus;
|
||||
public DiskFormat Hdd1;
|
||||
public DiskFormat Hdd2;
|
||||
public DiskFormat Hdd3;
|
||||
@@ -94,7 +94,7 @@ namespace cicm_web.Models
|
||||
{
|
||||
Colors = dbItem.Colors,
|
||||
Company = Company.GetItem(dbItem.Company),
|
||||
Gpu = Gpu.GetItem(dbItem.Gpu),
|
||||
Gpus = GpuByMachine.GetAllItems(dbItem.Id),
|
||||
Hdd1 = DiskFormat.GetItem(dbItem.Hdd1),
|
||||
Hdd2 = DiskFormat.GetItem(dbItem.Hdd2),
|
||||
Hdd3 = DiskFormat.GetItem(dbItem.Hdd3),
|
||||
|
||||
Reference in New Issue
Block a user