This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace AyaNova.Models
|
||||
public virtual DbSet<FormCustom> FormCustom { get; set; }
|
||||
public virtual DbSet<PickListTemplate> PickListTemplate { get; set; }
|
||||
public virtual DbSet<License> License { get; set; }
|
||||
public virtual DbSet<Memo> Memo { get; set; }
|
||||
public virtual DbSet<Customer> Customer { get; set; }
|
||||
public virtual DbSet<CustomerNote> CustomerNote { get; set; }
|
||||
public virtual DbSet<Contract> Contract { get; set; }
|
||||
|
||||
@@ -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, " +
|
||||
|
||||
Reference in New Issue
Block a user