This commit is contained in:
52
server/AyaNova/models/QuoteItemScheduledUser.cs
Normal file
52
server/AyaNova/models/QuoteItemScheduledUser.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
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 QuoteItemScheduledUser : 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 QuoteItemId { get; set; }
|
||||
[JsonIgnore]
|
||||
public QuoteItem QuoteItem { get; set; }
|
||||
[NotMapped, JsonIgnore]
|
||||
public AyaType AyaType { get => AyaType.QuoteItemScheduledUser; }
|
||||
}//eoc
|
||||
}//eons
|
||||
/*
|
||||
CREATE TABLE [dbo].[AQuoteITEMSCHEDULEDUSER](
|
||||
[AID] [uniqueidentifier] NOT NULL,
|
||||
[AQuoteITEMID] [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
|
||||
*/
|
||||
Reference in New Issue
Block a user