From 5d2d3e93aae1f8c202650241120b568500f7fc5f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 23 Nov 2020 15:56:52 +0000 Subject: [PATCH] --- server/AyaNova/models/CustomerNote.cs | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 server/AyaNova/models/CustomerNote.cs diff --git a/server/AyaNova/models/CustomerNote.cs b/server/AyaNova/models/CustomerNote.cs new file mode 100644 index 00000000..368beb51 --- /dev/null +++ b/server/AyaNova/models/CustomerNote.cs @@ -0,0 +1,33 @@ +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using AyaNova.Biz; +using Newtonsoft.Json; + +namespace AyaNova.Models +{ + //NOTE: Any non required field (nullable in DB) sb nullable here, i.e. decimal? not decimal, + //otherwise the server will call it an invalid record if the field isn't sent from client + + public class CustomerNote : ICoreBizObjectModel + { + public long Id { get; set; } + public uint Concurrency { get; set; } + + public DateTime NoteDate { get; set; } + + public string Notes { get; set; } + public List Tags { get; set; } + + + public CustomerNote() + { + Tags = new List(); + } + + [NotMapped, JsonIgnore] + public AyaType AyaType { get => AyaType.CustomerNote; } + + }//eoc + +}//eons