This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user