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

@@ -32,11 +32,12 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DiscImageChef.Database.Models
{
public class UsbVendor : BaseModel<ushort>
public class UsbVendor
{
public UsbVendor() { }
@@ -47,6 +48,8 @@ namespace DiscImageChef.Database.Models
AddedWhen = ModifiedWhen = DateTime.UtcNow;
}
[Key]
public ushort Id { get; set; }
public string Vendor { get; set; }
public DateTime AddedWhen { get; set; }
[Index]