using System;
using System.ComponentModel.DataAnnotations;
namespace Dfs.WayneChina.PosModelMini
{
public class SiteDevice
{
///
/// Unique id of the site device.
///
public Guid Id { get; set; }
///
/// Site device type.
///
public SiteDeviceType DeviceType { get; set; }
///
/// Description of the site device.
///
public string Description { get; set; }
///
/// Brand of the site device, such as Sunmi.
///
[MaxLength(100)]
public string Brand { get; set; }
///
/// like Summi T1 or Summi V1.
///
[MaxLength(100)]
public string Model { get; set; }
///
/// An id string which correlated with Device hardware, should be global unique, and could not be changed.
/// server may use this to authenticate a device.
///
public string HardwareIdentity { get; set; }
///
/// Use this field as the argument of only POS device,
/// and will be passed in to talk with FDC server,
/// so this value must be unique in one site(one fusion per site).
///
public string PosDeviceFdcClientId { get; set; }
///
/// Associate this site device to a business unit id.
///
public virtual Guid AsSubjectOfBusinessUnitId { get; set; }
///
/// A device acts as a subject of a business unit, all other user priviledge control are all
/// based on the device it operates.
/// think about a case, a pos machine belong to a site(businessUnit with type site), and then we can set an
/// user with restricted in this site, then the user restriction is actually checked with the user's log in
/// operation in this pos machine.
///
public virtual BusinessUnit AsSubjectOfBusinessUnit { get; set; }
}
}