Revert USB models to independence.

This commit is contained in:
2019-12-07 18:38:00 +00:00
parent e768f332a5
commit c579fdb491
2 changed files with 8 additions and 2 deletions

View File

@@ -31,11 +31,12 @@
// ****************************************************************************/
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DiscImageChef.Database.Models
{
public class UsbProduct : BaseModel<int>
public class UsbProduct
{
public UsbProduct() { }
@@ -47,6 +48,8 @@ namespace DiscImageChef.Database.Models
AddedWhen = ModifiedWhen = DateTime.UtcNow;
}
[Key]
public int Id { get; set; }
[Index]
public ushort ProductId { get; set; }
public string Product { get; set; }