mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Revert USB models to independence.
This commit is contained in:
@@ -31,11 +31,12 @@
|
|||||||
// ****************************************************************************/
|
// ****************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace DiscImageChef.Database.Models
|
namespace DiscImageChef.Database.Models
|
||||||
{
|
{
|
||||||
public class UsbProduct : BaseModel<int>
|
public class UsbProduct
|
||||||
{
|
{
|
||||||
public UsbProduct() { }
|
public UsbProduct() { }
|
||||||
|
|
||||||
@@ -47,6 +48,8 @@ namespace DiscImageChef.Database.Models
|
|||||||
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
public int Id { get; set; }
|
||||||
[Index]
|
[Index]
|
||||||
public ushort ProductId { get; set; }
|
public ushort ProductId { get; set; }
|
||||||
public string Product { get; set; }
|
public string Product { get; set; }
|
||||||
|
|||||||
@@ -32,11 +32,12 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace DiscImageChef.Database.Models
|
namespace DiscImageChef.Database.Models
|
||||||
{
|
{
|
||||||
public class UsbVendor : BaseModel<ushort>
|
public class UsbVendor
|
||||||
{
|
{
|
||||||
public UsbVendor() { }
|
public UsbVendor() { }
|
||||||
|
|
||||||
@@ -47,6 +48,8 @@ namespace DiscImageChef.Database.Models
|
|||||||
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Key]
|
||||||
|
public ushort Id { get; set; }
|
||||||
public string Vendor { get; set; }
|
public string Vendor { get; set; }
|
||||||
public DateTime AddedWhen { get; set; }
|
public DateTime AddedWhen { get; set; }
|
||||||
[Index]
|
[Index]
|
||||||
|
|||||||
Reference in New Issue
Block a user