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:
15
Cicm.Database/Models/StorageByOwnedMachine.cs
Normal file
15
Cicm.Database/Models/StorageByOwnedMachine.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Cicm.Database.Models
|
||||
{
|
||||
public class StorageByOwnedMachine : BaseModel<long>
|
||||
{
|
||||
public long OwnedMachineId { get; set; }
|
||||
public StorageType Type { get; set; }
|
||||
public StorageInterface Interface { get; set; }
|
||||
[Range(1, long.MaxValue)]
|
||||
public long Capacity { get; set; }
|
||||
|
||||
public virtual OwnedMachine OwnedMachine { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user