This commit is contained in:
21
Models/VendorNotification.cs
Normal file
21
Models/VendorNotification.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace rockfishCore.Models
|
||||
{
|
||||
public partial class VendorNotification
|
||||
{
|
||||
public VendorNotification()
|
||||
{
|
||||
DtCreated = Util.DateUtil.NowAsEpoch();
|
||||
}
|
||||
public long Id { get; set; }
|
||||
public long DtCreated { get; set; }
|
||||
public string Vendor { get; set; }
|
||||
public string Data { get; set; }
|
||||
public long? DtProcessed { get; set; }
|
||||
public bool Processed { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ namespace rockfishCore.Models
|
||||
public partial class rockfishContext : DbContext
|
||||
{
|
||||
|
||||
|
||||
|
||||
public virtual DbSet<Customer> Customer { get; set; }
|
||||
public virtual DbSet<LicenseTemplates> LicenseTemplates { get; set; }
|
||||
public virtual DbSet<Purchase> Purchase { get; set; }
|
||||
@@ -29,9 +29,11 @@ namespace rockfishCore.Models
|
||||
|
||||
//schema 10 case 3233
|
||||
public virtual DbSet<License> License { get; set; }
|
||||
//raven
|
||||
public virtual DbSet<TrialRequest> TrialRequest { get; set; }
|
||||
|
||||
public virtual DbSet<VendorNotification> VendorNotification { 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
|
||||
@@ -51,7 +53,7 @@ namespace rockfishCore.Models
|
||||
//************************************************
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
{
|
||||
modelBuilder.Entity<Customer>(entity =>
|
||||
{
|
||||
entity.ToTable("customer");
|
||||
@@ -97,10 +99,10 @@ namespace rockfishCore.Models
|
||||
.HasColumnName("supportEmail")
|
||||
.HasColumnType("text");
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
modelBuilder.Entity<LicenseTemplates>(entity =>
|
||||
{
|
||||
entity.ToTable("licenseTemplates");
|
||||
@@ -142,7 +144,7 @@ namespace rockfishCore.Models
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
modelBuilder.Entity<Purchase>(entity =>
|
||||
{
|
||||
@@ -301,7 +303,7 @@ namespace rockfishCore.Models
|
||||
//.WillCascadeOnDelete(true);
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
modelBuilder.Entity<User>(entity =>
|
||||
@@ -416,7 +418,7 @@ namespace rockfishCore.Models
|
||||
.HasColumnType("blob")
|
||||
.IsRequired();
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -519,13 +521,43 @@ namespace rockfishCore.Models
|
||||
.HasColumnName("key")
|
||||
.HasColumnType("text")
|
||||
.IsRequired();
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
modelBuilder.Entity<VendorNotification>(entity =>
|
||||
{
|
||||
entity.ToTable("vendornotification");
|
||||
|
||||
entity.Property(e => e.Id).HasColumnName("id");
|
||||
|
||||
entity.Property(e => e.DtCreated)
|
||||
.HasColumnName("dtcreated")
|
||||
.HasColumnType("integer")
|
||||
.IsRequired();
|
||||
|
||||
entity.Property(e => e.Vendor)
|
||||
.HasColumnName("vendor")
|
||||
.HasColumnType("text")
|
||||
.IsRequired();
|
||||
|
||||
entity.Property(e => e.Data)
|
||||
.HasColumnName("data")
|
||||
.HasColumnType("text")
|
||||
.IsRequired();
|
||||
|
||||
entity.Property(e => e.Processed)
|
||||
.HasColumnName("processed")
|
||||
.HasColumnType("boolean")
|
||||
.IsRequired();
|
||||
|
||||
|
||||
entity.Property(e => e.DtProcessed)
|
||||
.HasColumnName("dtprocessed")
|
||||
.HasColumnType("integer");
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
//-----------
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user