Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
|
c392815ae5 | 4 months ago |
|
6a8ef3d1e9 | 4 months ago |
|
3dd55ed594 | 4 months ago |
|
4b924f815e | 4 months ago |
|
0e808cd004 | 4 months ago |
@ -0,0 +1,13 @@
|
||||
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Infrastructure;
|
||||
|
||||
public class ApplicationDbContext : IdentityDbContext<IdentityUser>
|
||||
{
|
||||
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) :
|
||||
base(options)
|
||||
{ }
|
||||
}
|
@ -1,9 +1,25 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Shared;
|
||||
|
||||
namespace Server.Dto.Request;
|
||||
|
||||
public class RequestUserDto
|
||||
{
|
||||
[Required(ErrorMessage = "FirstName is required")]
|
||||
public string Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int Age { get; set; }
|
||||
public float Height { get; set; }
|
||||
public float Weight { get; set; }
|
||||
public bool Sexe { get; set; }
|
||||
public string? Logo { get; set; }
|
||||
public int NbSessionPerWeek { get; set; }
|
||||
public string? EGoal { get; set; }
|
||||
public ESleepLevel ESleepLevel { get; set; }
|
||||
|
||||
public EHealthProblem EHealthProblem { get; set; }
|
||||
|
||||
public ESport ESport { get; set; }
|
||||
|
||||
public ESportLevel ESportLevel { get; set; }
|
||||
}
|
Binary file not shown.
Loading…
Reference in new issue