From 266a56c43d33a24e29167953cc8153bf8e2ec523 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 23 Jan 2023 19:55:01 +0000 Subject: [PATCH] --- server/models/VendorNotification.cs | 5 +++-- server/util/AySchema.cs | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/server/models/VendorNotification.cs b/server/models/VendorNotification.cs index 000e873..755bd80 100644 --- a/server/models/VendorNotification.cs +++ b/server/models/VendorNotification.cs @@ -20,18 +20,19 @@ namespace Sockeye.Models public string VendorData { get; set; } public DateTime? Processed { get; set; } = null;//indicates it was fully processed and need not be processed by purchase generating job (all imported data set to processed) + public List Tags { get; set; } //workaround for notification [NotMapped, JsonIgnore] public string Name { get; set; } public VendorNotification() { - + Tags = new List(); } [NotMapped, JsonIgnore] public SockType SType { get => SockType.VendorNotification; } - public List Tags { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } + }//eoc }//eons diff --git a/server/util/AySchema.cs b/server/util/AySchema.cs index 324178d..1812b32 100644 --- a/server/util/AySchema.cs +++ b/server/util/AySchema.cs @@ -22,7 +22,7 @@ namespace Sockeye.Util //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!! private const int DESIRED_SCHEMA_LEVEL = 17; - internal const long EXPECTED_COLUMN_COUNT = 526; + internal const long EXPECTED_COLUMN_COUNT = 527; internal const long EXPECTED_INDEX_COUNT = 75; internal const long EXPECTED_CHECK_CONSTRAINTS = 251; internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 36; @@ -31,7 +31,7 @@ namespace Sockeye.Util //!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!! - ///////////////////////////////////////// (C526:I75:CC251:FC36:V0:R2) + ///////////////////////////////////////// C527:I75:CC251:FC36:V0:R2 /* MAXIMUM POSTGRES OBJECT NAME LENGTH: 63 CHARACTERS @@ -898,7 +898,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE"); + "wiki TEXT, tags VARCHAR(255) ARRAY )"); await ExecQueryAsync("CREATE TABLE avendornotification (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, created TIMESTAMPTZ NOT NULL, vendorid BIGINT NOT NULL REFERENCES avendor(id), " - + "vendordata TEXT, processed TIMESTAMPTZ)"); + + "vendordata TEXT, processed TIMESTAMPTZ, tags VARCHAR(255) ARRAY )"); await ExecQueryAsync("CREATE TABLE apurchase (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, customerid BIGINT REFERENCES acustomer(id) ON DELETE CASCADE, " + "vendorid BIGINT NOT NULL REFERENCES avendor(id), productid BIGINT REFERENCES aproduct(id), pgroup INTEGER NOT NULL DEFAULT 4, salesordernumber TEXT NOT NULL, "