This commit is contained in:
@@ -166,7 +166,8 @@ namespace AyaNova.Util
|
|||||||
//Add user table
|
//Add user table
|
||||||
exec("CREATE TABLE auser (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, active bool not null, name varchar(255) not null, " +
|
exec("CREATE TABLE auser (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, active bool not null, name varchar(255) not null, " +
|
||||||
"login text not null, password text not null, salt text not null, roles integer not null, localeid bigint not null REFERENCES alocale (id), " +
|
"login text not null, password text not null, salt text not null, roles integer not null, localeid bigint not null REFERENCES alocale (id), " +
|
||||||
"dlkey text, dlkeyexpire timestamp, usertype integer not null, employeenumber varchar(255), notes text, clientid bigint, headofficeid bigint, subvendorid bigint)");
|
"dlkey text, dlkeyexpire timestamp, usertype integer not null, employeenumber varchar(255), notes text, clientid bigint, " +
|
||||||
|
"headofficeid bigint, subvendorid bigint, tags varchar(255) ARRAY)");
|
||||||
|
|
||||||
//Index for name fetching
|
//Index for name fetching
|
||||||
exec("CREATE UNIQUE INDEX auser_name_id_idx ON auser (id, name);");
|
exec("CREATE UNIQUE INDEX auser_name_id_idx ON auser (id, name);");
|
||||||
|
|||||||
Reference in New Issue
Block a user