Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Knots.Models;
|
||||
|
||||
public class Discussion
|
||||
{
|
||||
|
||||
[Key] public int Id { get; set; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user