This commit is contained in:
2021-03-26 23:48:26 +00:00
parent 6c166de5b5
commit 883d1821e2
9 changed files with 171 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
@@ -8,15 +8,20 @@ namespace AyaNova.Models
{
public class WorkOrderItemTask : ICoreBizObjectModel
{
public WorkOrderItemTask()
{
Tags = new List<string>();
}
public long Id { get; set; }
public uint Concurrency { get; set; }
public string Notes { get; set; }
public string CustomFields { get; set; }
public List<string> Tags { get; set; }
public int DisplayOrder { get; set; } = 0;
[Required]
public string Task { get; set; }
[Required]
public WorkorderItemTaskCompletionType Status { get; set; } = WorkorderItemTaskCompletionType.Incomplete;
public long? CompletedByUserId { get; set; }
public DateTime? CompletedDate { get; set; }
[Required]
public long WorkOrderItemId { get; set; }
[JsonIgnore]
@@ -27,3 +32,15 @@ namespace AyaNova.Models
}//eoc
}//eons
/*
CREATE TABLE [dbo].[AWORKORDERITEMTASK](
[AID] [uniqueidentifier] NOT NULL,
[AWORKORDERITEMID] [uniqueidentifier] NOT NULL,
[ATASKID] [uniqueidentifier] NOT NULL,//drop, feeds now, Task it linked to is literally just a single string "Name" so this is an easy decision
[ATASKGROUPID] [uniqueidentifier] NOT NULL,//drop feeds now
[ACREATOR] [uniqueidentifier] NOT NULL,
[AMODIFIER] [uniqueidentifier] NOT NULL,
[ACREATED] [datetime] NOT NULL,
[AMODIFIED] [datetime] NOT NULL,
[AWORKORDERITEMTASKCMPLTNTYPE] [smallint] NOT NULL//rename to Status
*/