using System; using System.ComponentModel.DataAnnotations; namespace AyaNova.Models { /// /// Metric for ONE MINUTE intervals /// public class MetricMM { //DATA TYPES .net to postgres map //http://www.npgsql.org/doc/types/basic.html [Required] public DateTime t { get; set; } [Required] public float v { get; set; } public MetricMM() { t = System.DateTime.UtcNow; v=0; } }//eoc }//eons