This commit is contained in:
30
Models/TrialRequest.cs
Normal file
30
Models/TrialRequest.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user