Files
raven/server/AyaNova/models/PMItemScheduledUser.cs
2021-07-27 23:23:14 +00:00

52 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using AyaNova.Biz;
namespace AyaNova.Models
{
public class PMItemScheduledUser : ICoreBizObjectModel
{
public long Id { get; set; }
public uint Concurrency { get; set; }
public long? UserId { get; set; }
[NotMapped]
public string UserViz { get; set; }
public decimal EstimatedQuantity { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? StopDate { get; set; }
public long? ServiceRateId { get; set; }
[NotMapped]
public string ServiceRateViz { get; set; }
//workaround for notification
[NotMapped, JsonIgnore]
public List<string> Tags { get; set; } = new List<string>();
[NotMapped, JsonIgnore]
public string Name { get; set; }
[Required]
public long PMItemId { get; set; }
[JsonIgnore]
public PMItem PMItem { get; set; }
[NotMapped, JsonIgnore]
public AyaType AyaType { get => AyaType.PMItemScheduledUser; }
}//eoc
}//eons
/*
CREATE TABLE [dbo].[APMITEMSCHEDULEDUSER](
[AID] [uniqueidentifier] NOT NULL,
[APMITEMID] [uniqueidentifier] NOT NULL,
[ACREATOR] [uniqueidentifier] NOT NULL,
[AMODIFIER] [uniqueidentifier] NOT NULL,
[ACREATED] [datetime] NOT NULL,
[AMODIFIED] [datetime] NOT NULL,
[AUSERID] [uniqueidentifier] NULL,
[AESTIMATEDQUANTITY] [decimal](19, 5) NULL,
[ASTARTDATE] [datetime] NULL,
[ASTOPDATE] [datetime] NULL,
[ASERVICERATEID] [uniqueidentifier] NULL
*/