update API for more simple approach.

This commit is contained in:
programmingPug
2025-01-14 17:50:34 -05:00
parent 2de48f1fc9
commit f65ead854c
11 changed files with 130 additions and 202 deletions

View 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
}
}