2018-12-24 06:29:52 +00:00
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2018-12-24 21:13:02 +00:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2018-12-24 06:29:52 +00:00
|
|
|
|
|
|
|
|
namespace DiscImageChef.Database.Models
|
|
|
|
|
{
|
|
|
|
|
public class UsbProduct
|
|
|
|
|
{
|
|
|
|
|
public UsbProduct() { }
|
|
|
|
|
|
|
|
|
|
public UsbProduct(ushort vendorId, ushort id, string product)
|
|
|
|
|
{
|
|
|
|
|
ProductId = id;
|
|
|
|
|
Product = product;
|
|
|
|
|
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Key]
|
2018-12-24 21:13:02 +00:00
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Index]
|
|
|
|
|
public ushort ProductId { get; set; }
|
|
|
|
|
public string Product { get; set; }
|
|
|
|
|
public DateTime AddedWhen { get; set; }
|
|
|
|
|
[Index]
|
2018-12-24 06:29:52 +00:00
|
|
|
public DateTime ModifiedWhen { get; set; }
|
2018-12-24 21:13:02 +00:00
|
|
|
[Index]
|
|
|
|
|
public ushort VendorId { get; set; }
|
|
|
|
|
public virtual UsbVendor Vendor { get; set; }
|
2018-12-24 06:29:52 +00:00
|
|
|
}
|
|
|
|
|
}
|