Files
sockeye/server/models/GZCase.cs
2022-12-22 23:33:42 +00:00

34 lines
940 B
C#

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 List<string> Tags { get; set; }
public GZCase()
{
Tags = new List<string>();
Created = DateTime.UtcNow;
}
[NotMapped, JsonIgnore]
public SockType SType { get => SockType.GZCase; }
}//eoc
}//eons