This commit is contained in:
34
server/models/GZCase.cs
Normal file
34
server/models/GZCase.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using Sockeye.Biz;
|
||||
|
||||
namespace Sockeye.Models
|
||||
{
|
||||
public class GZCase : ICoreBizObjectModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
public long CaseId { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime? Closed { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string Wiki { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
public GZCase()
|
||||
{
|
||||
Tags = new List<string>();
|
||||
Created = DateTime.UtcNow;
|
||||
}
|
||||
[NotMapped, JsonIgnore]
|
||||
public SockType SType { get => SockType.GZCase; }
|
||||
}//eoc
|
||||
}//eons
|
||||
Reference in New Issue
Block a user