Major rewrite

This commit is contained in:
programmingPug
2025-01-14 14:47:10 -05:00
parent 0d7f77b1e3
commit 0f190a3f26
60 changed files with 966 additions and 4872 deletions

View File

@@ -0,0 +1,18 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace SoilMoistureAPI.Models
{
public class Device
{
[Key]
public string DeviceId { get; set; } // Primary Key
[Required]
[MaxLength(100)]
public string Nickname { get; set; }
// Navigation Property
public ICollection<SoilMoisture> SoilMoistures { get; set; }
}
}