Compare commits

...

1 Commits

Author SHA1 Message Date
b023e386f0 Add gallary models 2025-04-14 14:55:33 +05:30
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,18 @@
using Microsoft.EntityFrameworkCore.Metadata.Internal;
namespace Marco.Pms.Model.ImageGallary
{
public class ImageBatch
{
public Guid Id { get; set; }
public int TenantId { get; set; }
public string Title { get; set; }
public string? Description { get; set; }
public Guid ActivityId { get; set; }
public int UploadedBy { get; set; }
public DateTime UploadedAt { get; set; }
}
}

View File

@ -0,0 +1,24 @@
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marco.Pms.Model.ImageGallary
{
public class ImageFile
{
public Guid Id { get; set; }
public Guid BatchId { get; set; }
[ForeignKey("BatchId")]
[ValidateNever]
public ImageBatch ImageBatch { get; set; }
public string FileName { get; set; }
public string? Description { get; set; }
public string S3Key { get; set; }
public string ThumbS3Key { get; set; }
public int FileSize { get; set; }
public string ContentType { get; set; }
public DateTime UploadedAt { get; set; }
}
}