This commit is contained in:
2020-06-11 21:28:36 +00:00
parent 9b467d9152
commit 9ebf44f9d5
3 changed files with 36 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using rockfishCore.Util;
namespace rockfishCore.Models
@@ -11,8 +12,21 @@ namespace rockfishCore.Models
"dtprocessed integer, status integer default 0 not null, rejectreason text, key text, dtfetched integer" +
")");
*/
public partial class TrialRequest
{
public enum TrialRequestStatus{
NotSet=0,
Approved=1,
Rejected=2
}
public TrialRequest()
{
DtRequested=DateUtil.NowAsEpoch();
EmailValidated=false;
Status=TrialRequestStatus.NotSet;
}
public long Id { get; set; }
public Guid DbId { get; set; }
public string CompanyName { get; set; }
@@ -22,7 +36,7 @@ namespace rockfishCore.Models
public bool EmailValidated { get; set; }
public long? DtRequested { get; set; }
public long? DtProcessed { get; set; }
public int Status { get; set; }
public TrialRequestStatus Status { get; set; }// status enum 0=notset, 1=approved, 2=rejected
public string RejectReason { get; set; }
public string Key { get; set; }
public long? DtFetched { get; set; }