44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Newtonsoft.Json;
|
|
using AyaNova.Biz;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AyaNova.Models
|
|
{
|
|
public class WorkOrderState : ICoreBizObjectModel
|
|
{
|
|
public long Id { get; set; }
|
|
public uint Concurrency { get; set; }
|
|
|
|
[Required]
|
|
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]
|
|
public string UserViz { get; set; }
|
|
|
|
//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; }
|
|
|
|
[NotMapped, JsonIgnore]
|
|
public AyaType AyaType { get => AyaType.WorkOrderStatus; }
|
|
|
|
}//eoc
|
|
}//eons
|