hrms-api-backend/BMA.EHR.Domain/Models/Documents/Document.cs
Suphonchai Phoonsawat aa691fe65f Add Document Table
2023-06-26 14:55:54 +07:00

29 lines
745 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BMA.EHR.Domain.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;
}
}