added server and realm tabs to inventory screen
This commit is contained in:
parent
ee425e224e
commit
acab2f017d
12 changed files with 647 additions and 151 deletions
|
|
@ -278,6 +278,7 @@ CREATE TABLE server.props (
|
|||
is_transferable BOOLEAN NOT NULL DEFAULT true,
|
||||
is_portable BOOLEAN NOT NULL DEFAULT true,
|
||||
is_droppable BOOLEAN NOT NULL DEFAULT true,
|
||||
is_public BOOLEAN NOT NULL DEFAULT false,
|
||||
|
||||
is_active BOOLEAN NOT NULL DEFAULT true,
|
||||
available_from TIMESTAMPTZ,
|
||||
|
|
@ -306,6 +307,10 @@ COMMENT ON TABLE server.props IS 'Global prop library (64x64 pixels, center-anch
|
|||
|
||||
CREATE INDEX idx_server_props_tags ON server.props USING GIN (tags);
|
||||
CREATE INDEX idx_server_props_active ON server.props (is_active) WHERE is_active = true;
|
||||
CREATE INDEX idx_server_props_public ON server.props (is_public) WHERE is_public = true;
|
||||
|
||||
COMMENT ON COLUMN server.props.is_public IS
|
||||
'When true, prop appears in the public Server inventory tab. Uses filtered index idx_server_props_public.';
|
||||
|
||||
-- =============================================================================
|
||||
-- Audio Library
|
||||
|
|
|
|||
|
|
@ -216,6 +216,7 @@ CREATE TABLE realm.props (
|
|||
is_unique BOOLEAN NOT NULL DEFAULT false,
|
||||
is_transferable BOOLEAN NOT NULL DEFAULT true,
|
||||
is_droppable BOOLEAN NOT NULL DEFAULT true,
|
||||
is_public BOOLEAN NOT NULL DEFAULT false,
|
||||
|
||||
is_active BOOLEAN NOT NULL DEFAULT true,
|
||||
available_from TIMESTAMPTZ,
|
||||
|
|
@ -242,6 +243,10 @@ COMMENT ON TABLE realm.props IS 'Realm-specific prop library';
|
|||
CREATE INDEX idx_realm_props_realm ON realm.props (realm_id);
|
||||
CREATE INDEX idx_realm_props_tags ON realm.props USING GIN (tags);
|
||||
CREATE INDEX idx_realm_props_active ON realm.props (realm_id, is_active) WHERE is_active = true;
|
||||
CREATE INDEX idx_realm_props_public ON realm.props (realm_id, is_public) WHERE is_public = true;
|
||||
|
||||
COMMENT ON COLUMN realm.props.is_public IS
|
||||
'When true, prop appears in the public Realm inventory tab. Uses filtered index idx_realm_props_public.';
|
||||
|
||||
-- =============================================================================
|
||||
-- Add Foreign Keys to auth tables (now that realm.realms and realm.props exist)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue