set minio service
This commit is contained in:
parent
c76f29934b
commit
3ff5a4fa46
18 changed files with 2171 additions and 453 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Recurit.Exam.Service.Models.Documents;
|
||||
|
||||
namespace BMA.EHR.Recurit.Exam.Service.Models
|
||||
{
|
||||
|
|
@ -14,9 +15,13 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
|
|||
|
||||
[Required, MaxLength(20), Comment("สถานะผู้สมัคร")]
|
||||
public string Status { get; set; } = "register";
|
||||
|
||||
[Comment("เลขที่นั่งสอบ")]
|
||||
public string? SeatNumber { get; set; }
|
||||
|
||||
[Comment("Id รูปโปรไฟล์")]
|
||||
public virtual Document? ProfileImg { get; set; }
|
||||
|
||||
|
||||
|
||||
[Comment("คำนำหน้าชื่อ")]
|
||||
|
|
|
|||
29
Models/Documents/Document.cs
Normal file
29
Models/Documents/Document.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace BMA.EHR.Recurit.Exam.Service.Models.Documents
|
||||
{
|
||||
public class Document
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[Required, MaxLength(255)]
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public int FileSize { get; set; } = 0;
|
||||
|
||||
[Required, MaxLength(128)]
|
||||
public string FileType { get; set; } = string.Empty;
|
||||
|
||||
[Column(TypeName = "text")]
|
||||
public string Detail { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public Guid ObjectRefId { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime CreatedDate { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue