Add "Image" context to add images for the users
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace skydiveLogs_api.Model
|
||||
namespace skydiveLogs_api.Model
|
||||
{
|
||||
public class Aircraft
|
||||
{
|
||||
|
||||
13
Back/skydiveLogs-api.Model/Image.cs
Normal file
13
Back/skydiveLogs-api.Model/Image.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user