This commit is contained in:
@@ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using AyaNova.Biz;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
@@ -15,16 +16,22 @@ namespace AyaNova.Models
|
||||
public long WorkOrderId { get; set; }
|
||||
[Required]
|
||||
public long WorkOrderStatusId { get; set; }
|
||||
|
||||
|
||||
|
||||
public DateTime Created { get; set; } = DateTime.UtcNow;
|
||||
[Required]
|
||||
public long UserId { get; set; }
|
||||
[NotMapped]
|
||||
[NotMapped]
|
||||
public string UserViz { get; set; }
|
||||
|
||||
//UTILITY FIELDS
|
||||
|
||||
//workaround for notification
|
||||
[NotMapped, JsonIgnore]
|
||||
public List<string> Tags { get; set; } = new List<string>();
|
||||
[NotMapped, JsonIgnore]
|
||||
public string Name { get; set; }
|
||||
|
||||
//UTILITY FIELDS
|
||||
|
||||
//related
|
||||
// [JsonIgnore]//internal only here at server not used by client
|
||||
// public WorkOrderStatus WorkOrderStatus { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user