database.xml 7.79 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<database>

Patrick Müller's avatar
Patrick Müller committed
4
    <global>
5 6

        <table name="users">
Patrick Müller's avatar
Patrick Müller committed
7
            <field type="INT(11) NOT NULL">id</field>
Henning Leutz's avatar
Henning Leutz committed
8
            <field type="VARCHAR(50) NOT NULL">uuid</field>
9
            <field type="VARCHAR(50) NOT NULL DEFAULT ''">username</field>
10
            <field type="VARCHAR(255) NOT NULL DEFAULT ''">password</field>
11
            <field type="TEXT NULL">usergroup</field>
12
            <field type="VARCHAR(255) DEFAULT NULL">email</field>
Patrick Müller's avatar
Patrick Müller committed
13 14 15
            <field type="INT(1) NOT NULL DEFAULT '0'">active</field>
            <field type="INT(11) NOT NULL DEFAULT '0'">regdate</field>
            <field type="INT(11) NOT NULL DEFAULT '0'">lastvisit</field>
16
            <field type="TINYINT(1) NOT NULL DEFAULT 0">su</field>
17 18 19
            <field type="DATETIME NULL DEFAULT NULL">expire</field>
            <field type="DATETIME NULL DEFAULT NULL">lastedit</field>
            <field type="TEXT NULL">user_agent</field>
20 21 22
            <field type="VARCHAR(40) DEFAULT NULL">firstname</field>
            <field type="VARCHAR(40) DEFAULT NULL">lastname</field>
            <field type="VARCHAR(40) DEFAULT NULL">usertitle</field>
23
            <field type="INT(1) NOT NULL DEFAULT '0'">company</field>
24 25 26
            <field type="DATE NULL DEFAULT NULL">birthday</field>
            <field type="TEXT NULL">avatar</field>
            <field type="TEXT NULL">extra</field>
27 28
            <field type="VARCHAR(2) DEFAULT NULL">lang</field>
            <field type="INT(11) DEFAULT NULL">address</field>
29
            <field type="TINYTEXT NULL">secHash</field>
30
            <field type="TEXT NULL">toolbar</field>
Henning Leutz's avatar
Henning Leutz committed
31
            <field type="TEXT NULL">assigned_toolbar</field>
Florian Bogner's avatar
Florian Bogner committed
32 33 34
            <field type="VARCHAR(200) NULL">referal</field>
            <field type="VARCHAR(20) NULL">activation</field>
            <field type="VARCHAR(5) NULL">shortcuts</field>
35
            <field type="TEXT NULL">authenticator</field>
36
            <field type="VARCHAR(50) NOT NULL">uuid</field>
37 38
            <field type="DATETIME NULL DEFAULT NULL">lastLoginAttempt</field>
            <field type="SMALLINT UNSIGNED NOT NULL DEFAULT '0'">failedLogins</field>
39 40 41

            <primary>id</primary>
            <index>username,password</index>
Patrick Müller's avatar
Patrick Müller committed
42
            <auto_increment>id</auto_increment>
43

44
            <comment>This table contains the users of QUIQQER.</comment>
45 46
        </table>

47 48 49 50 51

        <table name="users_workspaces">
            <field type="INT(11) NOT NULL">id</field>
            <field type="INT(11) NOT NULL">uid</field>
            <field type="TEXT NULL">title</field>
Henning Leutz's avatar
Henning Leutz committed
52
            <field type="LONGTEXT NULL">data</field>
53 54 55 56 57 58
            <field type="INT(11) DEFAULT 0">minHeight</field>
            <field type="INT(11) DEFAULT 0">minWidth</field>
            <field type="INT(1) DEFAULT 0">standard</field>

            <primary>id</primary>
            <auto_increment>id</auto_increment>
59 60

            <comment>This table contains the workspaces of the QUIQQER users.</comment>
61 62
        </table>

63
        <table name="groups">
64 65 66
            <field type="INT(11) NOT NULL DEFAULT 0">id</field>
            <field type="VARCHAR(50) NOT NULL DEFAULT ''">name</field>
            <field type="INT(11) NOT NULL DEFAULT 0">parent</field>
67
            <field type="TINYINT(1) NOT NULL DEFAULT '0'">active</field>
Florian Bogner's avatar
Florian Bogner committed
68
            <field type="VARCHAR(128) DEFAULT ''">toolbar</field>
Henning Leutz's avatar
Henning Leutz committed
69
            <field type="TEXT NULL">assigned_toolbar</field>
70 71
            <field type="TEXT NULL">avatar</field>
            <field type="TEXT NULL">extra</field>
Florian Bogner's avatar
Florian Bogner committed
72
            <field type="TEXT NULL">rights</field>
73 74 75

            <primary>id</primary>
            <index>parent</index>
76 77

            <comment>This table contains the groups of QUIQQER.</comment>
78 79
        </table>

80
        <table name="permissions">
81 82 83
            <field type="VARCHAR(100) NOT NULL DEFAULT ''">name</field>
            <field type="VARCHAR(20) NOT NULL DEFAULT ''">type</field>
            <field type="VARCHAR(20) NOT NULL DEFAULT ''">area</field>
84 85 86 87
            <field type="VARCHAR(255) NULL">title</field>
            <field type="TEXT NULL">desc</field>
            <field type="VARCHAR(200) NULL">src</field>
            <field type="TEXT NULL">defaultvalue</field>
88

89
            <primary>name</primary>
90 91 92 93
            <index>name</index>
        </table>

        <table name="permissions2users">
94
            <field type="INT(11) NOT NULL DEFAULT 0">user_id</field>
95
            <field type="MEDIUMTEXT NULL">permissions</field>
96 97

            <primary>user_id</primary>
98 99
        </table>

100
        <table name="permissions2groups">
101
            <field type="INT(11) NOT NULL DEFAULT 0">group_id</field>
102
            <field type="MEDIUMTEXT NULL">permissions</field>
103 104

            <primary>group_id</primary>
105 106
        </table>

107
        <table name="permissions2sites">
108 109
            <field type="VARCHAR(200) NOT NULL DEFAULT ''">project</field>
            <field type="VARCHAR(2) NOT NULL DEFAULT ''">lang</field>
110 111
            <field type="INT(20) NOT NULL">id</field>
            <field type="VARCHAR(100) NOT NULL">permission</field>
112
            <field type="TEXT NULL">value</field>
113

114
            <primary>project,lang,id,permission</primary>
115 116 117
        </table>

        <table name="permissions2projects">
118 119
            <field type="VARCHAR(200) NOT NULL DEFAULT ''">project</field>
            <field type="VARCHAR(2) NOT NULL DEFAULT ''">lang</field>
120
            <field type="VARCHAR(100) NOT NULL">permission</field>
121
            <field type="TEXT NULL">value</field>
122

123
            <primary>project,lang,permission</primary>
124 125 126
        </table>

        <table name="permissions2media">
127
            <field type="VARCHAR(200) NOT NULL DEFAULT ''">project</field>
128 129
            <field type="INT(20) NOT NULL">id</field>
            <field type="VARCHAR(100) NOT NULL">permission</field>
130
            <field type="TEXT NULL">value</field>
131

132
            <primary>project,id,permission</primary>
133 134
        </table>

135
        <table name="sessions">
136
            <field type="VARCHAR(255) NOT NULL DEFAULT ''">session_id</field>
137
            <field type="TEXT NULL ">session_value</field>
138 139
            <field type="INT(11) NOT NULL DEFAULT 0">session_time</field>
            <field type="INT(11) NOT NULL DEFAULT 0">session_lifetime</field>
140 141

            <primary>session_id</primary>
142 143 144 145
            <comment>
                This table contains the user session. This table is only used when sessions run over the database.
                Default is the file system.
            </comment>
146
        </table>
147 148 149

        <table name="updateChecks">
            <field type="INT(11) NOT NULL">id</field>
Florian Bogner's avatar
Florian Bogner committed
150
            <field type="INT(11) NULL">date</field>
151 152
            <field type="TEXT NULL">result</field>
            <field type="TEXT NULL">error</field>
153 154 155 156

            <primary>id</primary>
            <auto_increment>id</auto_increment>
        </table>
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176

        <!-- Addresses -->
        <table name="users_address">
            <field type="INT(11) NOT NULL">id</field>
            <field type="INT(11) NOT NULL">uid</field>
            <field type="VARCHAR(10)">salutation</field>
            <field type="VARCHAR(40)">firstname</field>
            <field type="VARCHAR(40)">lastname</field>
            <field type="TEXT NULL">phone</field>
            <field type="TEXT NULL">mail</field>
            <field type="VARCHAR(100)">company</field>
            <field type="TEXT NULL">delivery</field>
            <field type="TEXT NULL">street_no</field>
            <field type="TEXT NULL">zip</field>
            <field type="TEXT NULL">city</field>
            <field type="TEXT NULL">country</field>
            <field type="TEXT NULL">custom_data</field>

            <primary>id</primary>
            <auto_increment>id</auto_increment>
177
            <index>uid</index>
178 179
        </table>

Patrick Müller's avatar
Patrick Müller committed
180
    </global>
181

Henning Leutz's avatar
Henning Leutz committed
182 183
    <projects>
        <table name="paths" no-auto-update="1">
184
            <field type="TEXT NULL">path</field>
Henning Leutz's avatar
Henning Leutz committed
185 186 187
        </table>
    </projects>

188
</database>