using System.ComponentModel.DataAnnotations;
namespace SchotzIadKmTracker.Api.Models.Entities;
/// Profil utilisateur (singleton — une seule ligne).
public class Profil
{
public int Id { get; set; } = 1; // toujours 1
[MaxLength(100)]
public string? Nom { get; set; }
[MaxLength(100)]
public string? Prenom { get; set; }
/// Matricule (8 caractères maximum).
[MaxLength(8)]
public string? Matricule { get; set; }
[MaxLength(255)]
public string? AdresseDomicile { get; set; }
public double? DomicileLatitude { get; set; }
public double? DomicileLongitude { get; set; }
public bool DomicileGeocode { get; set; } = false;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}