This commit is contained in:
2020-06-09 23:31:00 +00:00
parent 4021f5a108
commit 25c9c2661e
10 changed files with 544 additions and 8 deletions

30
Models/TrialRequest.cs Normal file
View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
namespace rockfishCore.Models
{
/*
exec("CREATE TABLE trialrequest (" +
"id INTEGER PRIMARY KEY, dbid text not null, companyname text not null, contactname text not null, notes text, email text not null, " +
"emailvalidated boolean default 0 NOT NULL CHECK (emailvalidated IN (0,1)), dtrequested integer, " +
"dtprocessed integer, status integer default 0 not null, rejectreason text, key text, dtfetched integer" +
")");
*/
public partial class TrialRequest
{
public long Id { get; set; }
public string DbId { get; set; }
public string CompanyName { get; set; }
public string ContactName { get; set; }
public string Notes { get; set; }
public string Email { get; set; }
public bool EmailValidated { get; set; }
public long? DtRequested { get; set; }
public long? DtProcessed { get; set; }
public int Status { get; set; }
public string RejectReason { get; set; }
public string Key { get; set; }
public long? DtFetched { get; set; }
}
}

View File

@@ -30,7 +30,8 @@ namespace rockfishCore.Models
//schema 10 case 3233
public virtual DbSet<License> License { get; set; }
//raven
public virtual DbSet<TrialRequest> TrialRequest { get; set; }
//Note: had to add this constructor to work with the code in startup.cs that gets the connection string from the appsettings.json file
//and commented out the above on configuring