This commit is contained in:
63
server/AyaNova/models/Reminder.cs
Normal file
63
server/AyaNova/models/Reminder.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
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 Reminder : ICoreBizObjectModel
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
public bool Active { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string Wiki { get; set; }
|
||||
public string CustomFields { get; set; }
|
||||
public List<string> Tags { get; set; }
|
||||
|
||||
public DateTime? DateStarted { get; set; }
|
||||
public DateTime? DateCompleted { get; set; }
|
||||
public long? ReminderOverseerId { get; set; }
|
||||
public string AccountNumber { get; set; }
|
||||
|
||||
public Reminder()
|
||||
{
|
||||
Tags = new List<string>();
|
||||
DateStarted = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
[NotMapped, JsonIgnore]
|
||||
public AyaType AyaType { get => AyaType.Reminder; }
|
||||
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
|
||||
/*
|
||||
DATES should be indexed for fast viewing
|
||||
CREATE TABLE [dbo].[ASCHEDULEMARKER](
|
||||
[AID] [uniqueidentifier] NOT NULL,
|
||||
[ACREATED] [datetime] NOT NULL,
|
||||
[ACREATOR] [uniqueidentifier] NOT NULL,
|
||||
[AMODIFIER] [uniqueidentifier] NOT NULL,
|
||||
[ANAME] [nvarchar](255) NULL,
|
||||
[ANOTES] [ntext] NULL,
|
||||
[AMODIFIED] [datetime] NULL,
|
||||
[ASTARTDATE] [datetime] NULL,
|
||||
[ASTOPDATE] [datetime] NULL,
|
||||
[ASCHEDULEMARKERSOURCETYPE] [smallint] NULL,
|
||||
[ASOURCEID] [uniqueidentifier] NOT NULL,
|
||||
[AARGB] [int] NULL,
|
||||
[AFOLLOWID] [uniqueidentifier] NULL,
|
||||
[AFOLLOWTYPE] [smallint] NULL,
|
||||
[ACOMPLETED] [bit] NOT NULL,
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user