diff --git a/server/AyaNova/biz/BizRoles.cs b/server/AyaNova/biz/BizRoles.cs index ef33caf8..56e008c3 100644 --- a/server/AyaNova/biz/BizRoles.cs +++ b/server/AyaNova/biz/BizRoles.cs @@ -601,7 +601,7 @@ namespace AyaNova.Biz roles.Add(AyaType.Widget, new BizRoleSet() { Change = AuthorizationRoles.AllInsideUserRoles, - ReadFullRecord = AuthorizationRoles.AllInsideUserRoles,, + ReadFullRecord = AuthorizationRoles.AllInsideUserRoles, Select = AuthorizationRoles.AllInsideUserRoles, }); diff --git a/server/AyaNova/models/AyContext.cs b/server/AyaNova/models/AyContext.cs index ec7a71d2..09698141 100644 --- a/server/AyaNova/models/AyContext.cs +++ b/server/AyaNova/models/AyContext.cs @@ -27,6 +27,7 @@ namespace AyaNova.Models public virtual DbSet FormCustom { get; set; } public virtual DbSet PickListTemplate { get; set; } public virtual DbSet License { get; set; } + public virtual DbSet Memo { get; set; } public virtual DbSet Customer { get; set; } public virtual DbSet CustomerNote { get; set; } public virtual DbSet Contract { get; set; } diff --git a/server/AyaNova/util/AySchema.cs b/server/AyaNova/util/AySchema.cs index f094409c..d5c8d9c5 100644 --- a/server/AyaNova/util/AySchema.cs +++ b/server/AyaNova/util/AySchema.cs @@ -485,8 +485,7 @@ $BODY$; await ExecQueryAsync("CREATE TABLE amemo (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name text not null, " + "notes text, wiki text, customfields text, tags varchar(255) ARRAY, " + "viewed bool default false, replied bool default false, fromid bigint not null REFERENCES auser(id), toid bigint not null REFERENCES auser(id) )"); - - await ExecQueryAsync("CREATE INDEX aproject_tags ON aproject using GIN(tags)"); + await ExecQueryAsync("CREATE INDEX amemo_tags ON amemo using GIN(tags)"); //CUSTOMER await ExecQueryAsync("CREATE TABLE acustomer (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name text not null unique, active bool, " + @@ -503,6 +502,7 @@ $BODY$; await ExecQueryAsync("CREATE TABLE acustomernote (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, " + "customerid bigint not null REFERENCES acustomer(id), userid bigint not null REFERENCES auser(id), " + "notedate timestamp not null, notes text, tags varchar(255) ARRAY )"); + await ExecQueryAsync("CREATE INDEX acustomernote_tags ON acustomernote using GIN(tags)"); //CONTRACT await ExecQueryAsync("CREATE TABLE acontract (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name text not null unique, active bool, " +