2023-03-13 12:29:56 +07:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BMA.EHR.Recruit.Service.Models.Documents
|
|
|
|
|
|
{
|
2023-03-25 20:03:27 +07:00
|
|
|
|
public class Document
|
2023-03-13 12:29:56 +07:00
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Required, MaxLength(255)]
|
|
|
|
|
|
public string FileName { get; set; } = string.Empty;
|
|
|
|
|
|
|
2023-03-25 20:03:27 +07:00
|
|
|
|
[Required]
|
2023-03-13 12:29:56 +07:00
|
|
|
|
public int FileSize { get; set; } = 0;
|
|
|
|
|
|
|
2023-03-25 20:03:27 +07:00
|
|
|
|
[Required, MaxLength(128)]
|
2023-03-13 12:29:56 +07:00
|
|
|
|
public string FileType { get; set; } = string.Empty;
|
|
|
|
|
|
|
2023-03-25 20:03:27 +07:00
|
|
|
|
[Column(TypeName = "text")]
|
2023-03-13 12:29:56 +07:00
|
|
|
|
public string Detail { get; set; } = string.Empty;
|
|
|
|
|
|
|
2023-03-25 20:03:27 +07:00
|
|
|
|
[Required]
|
|
|
|
|
|
public Guid ObjectRefId { get; set; }
|
2023-03-13 12:29:56 +07:00
|
|
|
|
|
2023-03-25 20:03:27 +07:00
|
|
|
|
[Required]
|
|
|
|
|
|
public DateTime CreatedDate { get; set; } = DateTime.Now;
|
2023-03-13 12:29:56 +07:00
|
|
|
|
}
|
|
|
|
|
|
}
|