Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
oistig
2026-03-12 15:26:12 +01:00
4 changed files with 17 additions and 8 deletions

View File

@@ -1,6 +1,8 @@
using System.ComponentModel.DataAnnotations;
namespace Knots.Models;
public class Discussion
{
[Key] public int Id { get; set; }
}

View File

@@ -1,13 +1,12 @@
using System.ComponentModel.DataAnnotations;
using System.Net.Mime;
namespace Knots.Models;
public class Group
{
[Key] public int Id { get; set; }
[Required, MaxLength(100)] public string? FirstName { get; set; }
[Required, MaxLength(100)] public string? LastName { get; set; }
[MaxLength(2000)] public string? Biography { get; set; }
[Required] public DateOnly BirthDate { get; set; }
[Required, MaxLength(60)] public string? Nationality { get; set; }
[Required, MaxLength(50)] public string? Nom { get; set; }
[Required] public int NombreMembres { get; set; }
public string? ProfilePicture { get; set; }
}

View File

@@ -1,6 +1,9 @@
using System.ComponentModel.DataAnnotations;
namespace Knots.Models;
public class Key
{
[Key] public int Id { get; set; }
[Required, MaxLength(50)] public string? EnKey { get; set; }
}

View File

@@ -1,6 +1,11 @@
using System.ComponentModel.DataAnnotations;
namespace Knots.Models;
public class Message
{
[Key] public int Id { get; set; }
[Required, MaxLength(1000)] public string? Contenu { get; set; }
[Required] public DateTime Date { get; set; }
[Required] public Boolean Type { get; set; }
}