update API for more simple approach.
This commit is contained in:
12
SoilMoistureAPI/Models/SoilMoistureFlat.cs
Normal file
12
SoilMoistureAPI/Models/SoilMoistureFlat.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace SoilMoistureAPI.Models
|
||||
{
|
||||
public class SoilMoistureFlat
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string DeviceId { get; set; } // Unique identifier for the sensor device
|
||||
public float MoistureLevel { get; set; } // Current moisture reading
|
||||
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
|
||||
public string Nickname { get; set; } // A friendly name for the device
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user