updated to map to current prim object model
parent
47ea453b32
commit
3a9fb6a1f2
|
@ -3,21 +3,19 @@
|
||||||
--
|
--
|
||||||
|
|
||||||
create table prims (
|
create table prims (
|
||||||
LocalID integer primary key not null,
|
id integer primary key autoincrement,
|
||||||
ParentID integer default 0,
|
ParentID integer default 0,
|
||||||
FullID char(36),
|
FullID char(36),
|
||||||
CreationDate integer,
|
CreationDate integer,
|
||||||
-- permissions
|
-- permissions
|
||||||
OwnerID char(36),
|
OwnerID char(36),
|
||||||
|
LastOwnerID char(36),
|
||||||
OwnerMask integer,
|
OwnerMask integer,
|
||||||
NextOwnerMask integer,
|
NextOwnerMask integer,
|
||||||
GroupMask integer,
|
GroupMask integer,
|
||||||
EveryoneMask integer,
|
EveryoneMask integer,
|
||||||
BaseMask integer,
|
BaseMask integer,
|
||||||
-- vectors (converted from LLVector3)
|
-- vectors (converted from LLVector3)
|
||||||
ScaleX integer,
|
|
||||||
ScaleY integer,
|
|
||||||
ScaleZ integer,
|
|
||||||
PositionX integer,
|
PositionX integer,
|
||||||
PositionY integer,
|
PositionY integer,
|
||||||
PositionZ integer,
|
PositionZ integer,
|
||||||
|
@ -25,7 +23,22 @@ create table prims (
|
||||||
RotationX integer,
|
RotationX integer,
|
||||||
RotationY integer,
|
RotationY integer,
|
||||||
RotationZ integer,
|
RotationZ integer,
|
||||||
RotationW integer,
|
RotationW integer
|
||||||
|
);
|
||||||
|
|
||||||
|
create index prims_parent on prims(ParentID);
|
||||||
|
create index prims_ownerid on prims(OwnerID);
|
||||||
|
create index prims_lastownerid on prims(LastOwnerID);
|
||||||
|
|
||||||
|
create table primshapes (
|
||||||
|
id integer primary key autoincrement,
|
||||||
|
prim_id integer not null,
|
||||||
|
-- Shape is an enum
|
||||||
|
Shape integer,
|
||||||
|
-- vectors (converted from LLVector3)
|
||||||
|
ScaleX integer,
|
||||||
|
ScaleY integer,
|
||||||
|
ScaleZ integer,
|
||||||
-- paths
|
-- paths
|
||||||
PCode integer,
|
PCode integer,
|
||||||
PathBegin integer,
|
PathBegin integer,
|
||||||
|
@ -51,6 +64,4 @@ create table prims (
|
||||||
Texture blob
|
Texture blob
|
||||||
);
|
);
|
||||||
|
|
||||||
create index prims_parent on prims(ParentID);
|
create index primshapes_parentid on primshapes(prim_id);
|
||||||
create index prims_ownerid on prims(OwnerID);
|
|
||||||
create index prims_fullid on prims(FullID);
|
|
||||||
|
|
Loading…
Reference in New Issue