//----------------------------------------------------------------------- // FILENAME: DataSourceEntity.cs // PROJECT: Entities // SOLUTION: HeartTrack // DATE CREATED: 22/02/2024 // AUTHOR: Antoine PEREDERII //----------------------------------------------------------------------- using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Entities { /// /// Represents a data source entity in the database. /// [Table("DataSource")] public class DataSourceEntity { /// /// Gets or sets the unique identifier of the data source. /// [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int IdSource { get; set; } /// /// Gets or sets the type of the data source. /// [MaxLength(100)] [Required] public required string Type { get; set; } /// /// Gets or sets the model of the data source. /// [MaxLength(100)] [Required] public required string Model { get; set; } /// /// Gets or sets the precision of the data source. /// public float Precision { get; set; } public ICollection Activities { get; set; } = new List(); public ICollection Athletes { get; set; } = new List(); } }