Files
raven/server/AyaNova/models/CustomerNote.cs
2020-11-23 20:35:39 +00:00

42 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using AyaNova.Biz;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace AyaNova.Models
{
public class CustomerNote
{
public long Id { get; set; }
public uint Concurrency { get; set; }
[Required]
public long CustomerId { get; set; }
[Required]
public long UserId { get; set; }
[Required]
public DateTime NoteDate { get; set; }
public string Notes { get; set; }
public List<string> Tags { get; set; }
public CustomerNote()
{
NoteDate = DateTime.UtcNow;
Tags = new List<string>();
}
[NotMapped, JsonIgnore]
public AyaType AyaType { get => AyaType.CustomerNote; }
[JsonIgnore]
public Customer Customer { get; set; }
[JsonIgnore]
public User User { get; set; }
}//eoc
}//eons