Stub Customer object

This commit is contained in:
2020-05-01 20:45:06 +00:00
parent 7c2e37fcea
commit ce5f8f21c2
12 changed files with 689 additions and 28 deletions

View File

@@ -315,6 +315,28 @@ namespace AyaNova.Util
}
//////////////////////////////////////////////////
//MULTIPLE BIZ OBJECT tables
if (currentSchema < 11)
{
LogUpdateMessage(log);
//CUSTOMER
await ExecQueryAsync("CREATE TABLE acustomer (id BIGSERIAL PRIMARY KEY, name varchar(255) not null unique, active bool, " +
"notes text NULL, wiki text null, customfields text NULL, tags varchar(255) ARRAY NULL)");
await ExecQueryAsync("CREATE UNIQUE INDEX acustomer_name_id_idx ON acustomer (id, name);");
await ExecQueryAsync("CREATE INDEX acustomer_tags ON acustomer using GIN(tags)");
await SetSchemaLevelAsync(++currentSchema);
}
// //////////////////////////////////////////////////
// // WikiPage table
// if (currentSchema < 11)