23 lines
740 B
C#
23 lines
740 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Marco.Pms.Model.Entitlements;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
|
|
namespace Marco.Pms.Model.Projects
|
|
{
|
|
public class PhotoGallary
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string? Description { get; set; }
|
|
public int ProjectId { get; set; }
|
|
[ValidateNever]
|
|
[ForeignKey(nameof(ProjectId))]
|
|
public Project? Project { get; set; }
|
|
public string? AddedBy { get; set; }
|
|
[ValidateNever]
|
|
[ForeignKey(nameof(AddedBy))]
|
|
public ApplicationUser? ApplicationUser { get; set; }
|
|
public DateTime AddedOn { get; set; }
|
|
public required string Imagebase64 { get; set; }
|
|
}
|
|
}
|