aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/share/sql/sqlite3-prims.sql
blob: 5ca29f70e9a3cc48664a323a8f47caf38998a974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--
-- Database schema for local prim storage
--

create table prims (
        LocalID integer primary key not null,
        ParentID integer default 0,
        FullID char(36),
        CreationDate integer, 
        -- permissions
        OwnerID char(36),
        OwnerMask integer,
        NextOwnerMask integer,
        GroupMask integer,
        EveryoneMask integer,
        BaseMask integer,
        -- vectors (converted from LLVector3)
        ScaleX integer,
        ScaleY integer,
        ScaleZ integer,
        PositionX integer,
        PositionY integer,
        PositionZ integer,
        -- quaternions (converted from LLQuaternion)
        RotationX integer,
        RotationY integer,
        RotationZ integer,
        RotationW integer,
        -- paths
        PCode integer,
        PathBegin integer,
        PathEnd integer,
        PathScaleX integer,
        PathScaleY integer,
        PathShearX integer,
        PathShearY integer,
        PathSkew integer,
        PathCurve integer,
        PathRadiusOffset integer,
        PathRevolutions integer,
        PathTaperX integer,
        PathTaperY integer,
        PathTwist integer,
        PathTwistBegin integer,
        -- profile
        ProfileBegin integer,
        ProfileEnd integer,
        ProfileCurve integer,
        ProfileHollow integer,
        -- text
        Texture blob
);

create index prims_parent on prims(ParentID);
create index prims_ownerid on prims(OwnerID);
create index prims_fullid on prims(FullID);