Compare commits
1 Commits
main
...
Feature_Im
Author | SHA1 | Date | |
---|---|---|---|
b023e386f0 |
18
Marco.Pms.Model/ImageGallary/ImageBatch.cs
Normal file
18
Marco.Pms.Model/ImageGallary/ImageBatch.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
|
24
Marco.Pms.Model/ImageGallary/ImageFile.cs
Normal file
24
Marco.Pms.Model/ImageGallary/ImageFile.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user