MinIO Service

This commit is contained in:
Suphonchai Phoonsawat 2023-03-25 20:03:27 +07:00
parent e33c19ae8a
commit bdd327cce2
43 changed files with 2092 additions and 1447 deletions

View file

@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Recruit.Service.Models.Documents
{
public class Document
public class Document
{
[Key]
public Guid Id { get; set; }
@ -11,17 +11,19 @@ namespace BMA.EHR.Recruit.Service.Models.Documents
[Required, MaxLength(255)]
public string FileName { get; set; } = string.Empty;
[Required]
public int FileSize { get; set; } = 0;
[MaxLength(128)]
[Required, MaxLength(128)]
public string FileType { get; set; } = string.Empty;
[Column(TypeName = "text")]
[Column(TypeName = "text")]
public string Detail { get; set; } = string.Empty;
[MaxLength(64)]
public string ObjectRefId { get; set; } = string.Empty;
[Required]
public Guid ObjectRefId { get; set; }
public DateTime CreatedDate { get; set; } = DateTime.Now;
[Required]
public DateTime CreatedDate { get; set; } = DateTime.Now;
}
}