This commit is contained in:
2022-06-16 22:20:36 +00:00
parent 06af4cda1d
commit 848577d58b
5 changed files with 13 additions and 3 deletions

2
.vscode/launch.json vendored
View File

@@ -48,7 +48,7 @@
"AYANOVA_DATA_PATH": "c:\\temp\\ravendata",
"AYANOVA_USE_URLS": "http://*:7575;",
//"AYANOVA_PERMANENTLY_ERASE_DATABASE":"true",
"AYANOVA_SERVER_TEST_MODE": "false",
"AYANOVA_SERVER_TEST_MODE": "true",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8",
//"AYANOVA_REPORT_RENDERING_TIMEOUT":"1",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",

View File

@@ -18,6 +18,10 @@ namespace AyaNova.Api.Controllers
[Authorize]
public class IntegrationController : ControllerBase
{
/*
todo: needs routes for logging and fetching log to view, also mapping collection stuff perhaps??
*/
private readonly AyContext ct;
private readonly ILogger<IntegrationController> log;
private readonly ApiServerState serverState;

View File

@@ -9,6 +9,12 @@ namespace AyaNova.Biz
{
internal class IntegrationBiz : BizObject
{
/*
todo: needs code to back routes for logging and fetching log to view
*/
internal IntegrationBiz(AyContext dbcontext, long currentUserId, long userTranslationId, AuthorizationRoles UserRoles)
{
ct = dbcontext;

View File

@@ -11,7 +11,7 @@ namespace AyaNova.Models
{
public long Id { get; set; }
[Required]
public Guid IntegrationAppId { get; set; }
public long IntegrationId { get; set; }
[Required]
public DateTime Created { get; set; }
[Required]

View File

@@ -1343,7 +1343,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
+ ")");
//INTEGRATIONLOG
await ExecQueryAsync("CREATE TABLE aintegrationlog (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, integrationappid uuid NOT NULL, created TIMESTAMPTZ NOT NULL, statustext TEXT NOT NULL)");
await ExecQueryAsync("CREATE TABLE aintegrationlog (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, integrationid BIGINT NOT NULL REFERENCES aintegration ON DELETE CASCADE, created TIMESTAMPTZ NOT NULL, statustext TEXT NOT NULL)");
//Trans keys must come in a subsequent schema update when get to front end UI code