Add "Image" context to add images for the users

This commit is contained in:
Sébastien André
2020-05-26 17:26:04 +02:00
parent 8367927046
commit f21bda7d7b
18 changed files with 250 additions and 10 deletions

View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace skydiveLogs_api.Model
namespace skydiveLogs_api.Model
{
public class Aircraft
{

View File

@@ -0,0 +1,13 @@
namespace skydiveLogs_api.Model
{
public class Image
{
public int Id { get; set; }
public string Comment { get; set; }
public string Data { get; set; }
public int UserId { get; set; }
}
}

View File

@@ -1,4 +1,6 @@
namespace skydiveLogs_api.Model
using System.Collections.Generic;
namespace skydiveLogs_api.Model
{
public class User
{
@@ -13,5 +15,7 @@
public string Login { get; set; }
public string Password { get; set; }
public IEnumerable<Image> Images { get; set; }
}
}