diff --git a/Marco.Pms.Model/ImageGallary/ImageBatch.cs b/Marco.Pms.Model/ImageGallary/ImageBatch.cs new file mode 100644 index 0000000..43d7f40 --- /dev/null +++ b/Marco.Pms.Model/ImageGallary/ImageBatch.cs @@ -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; } + + } +} + diff --git a/Marco.Pms.Model/ImageGallary/ImageFile.cs b/Marco.Pms.Model/ImageGallary/ImageFile.cs new file mode 100644 index 0000000..eebb678 --- /dev/null +++ b/Marco.Pms.Model/ImageGallary/ImageFile.cs @@ -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; } + + } +} +