Open VladimirAkopyan opened 6 years ago
Current location fields:
public class Location : BaseEntity
{
[Required]
public string Name { get; set; }
[JsonIgnore]
public virtual Person Person { get; set; }
[Required]
public Guid PersonId { get; set; }
[JsonIgnore]
public virtual List<Device> Devices { get; set; }
[JsonIgnore]
public virtual List<CropCycle> CropCycles { get; set; }
[JsonIgnore]
public virtual List<SensorHistory> SensorHistory { get; set; }
[JsonIgnore]
public virtual List<RelayHistory> RelayHistory { get; set; }
}
Basically we only have to worry about the name. Could add description if deemed nessesary.
For the moment there is no Location Management, we just give each device a bogus location. There needs to be UI area where location can be created. Since locations are not deleted, only marked as deleted, the locations that are "deleted" must be hidden.