init
This commit is contained in:
19
watcher-monitoring/Models/Server.cs
Normal file
19
watcher-monitoring/Models/Server.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace watcher_monitoring.Models;
|
||||
|
||||
public class Server
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
|
||||
// Device Information
|
||||
[Required]
|
||||
public required string Name { get; set; }
|
||||
|
||||
[Required]
|
||||
// TODO: [RegularExpression("^(((?!25?[6-9])[12]\d|[1-9])?\d\.?\b){4}$")]
|
||||
public required string IPAddress { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user