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

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>
Patrick Müller's avatar
Patrick Müller committed
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(50) 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="TEXT(32) 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
        </table>

45 46 47 48 49

        <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
50
            <field type="LONGTEXT NULL">data</field>
51 52 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>
        </table>

59
        <table name="groups">
60 61 62
            <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>
63
            <field type="TINYINT(1) NOT NULL DEFAULT '0'">active</field>
Florian Bogner's avatar
Florian Bogner committed
64
            <field type="VARCHAR(128) DEFAULT ''">toolbar</field>
Henning Leutz's avatar
Henning Leutz committed
65
            <field type="TEXT NULL">assigned_toolbar</field>
66 67
            <field type="TEXT NULL">avatar</field>
            <field type="TEXT NULL">extra</field>
Florian Bogner's avatar
Florian Bogner committed
68
            <field type="TEXT NULL">rights</field>
69 70 71 72 73

            <primary>id</primary>
            <index>parent</index>
        </table>

74
        <table name="permissions">
75 76 77
            <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>
78 79 80 81
            <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>
82

83
            <primary>name</primary>
84 85 86 87
            <index>name</index>
        </table>

        <table name="permissions2users">
88
            <field type="INT(11) NOT NULL DEFAULT 0">user_id</field>
89
            <field type="MEDIUMTEXT NULL">permissions</field>
90 91

            <primary>user_id</primary>
92 93
        </table>

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

            <primary>group_id</primary>
99 100
        </table>

101
        <table name="permissions2sites">
102 103
            <field type="VARCHAR(200) NOT NULL DEFAULT ''">project</field>
            <field type="VARCHAR(2) NOT NULL DEFAULT ''">lang</field>
104 105
            <field type="INT(20) NULL">id</field>
            <field type="VARCHAR(100) NULL">permission</field>
106
            <field type="TEXT NULL">value</field>
107

108
            <primary>project,lang,id,permission</primary>
109 110 111
        </table>

        <table name="permissions2projects">
112 113
            <field type="VARCHAR(200) NOT NULL DEFAULT ''">project</field>
            <field type="VARCHAR(2) NOT NULL DEFAULT ''">lang</field>
114
            <field type="VARCHAR(100) NULL">permission</field>
115
            <field type="TEXT NULL">value</field>
116

117
            <primary>project,lang,permission</primary>
118 119 120
        </table>

        <table name="permissions2media">
121
            <field type="VARCHAR(200) NOT NULL DEFAULT ''">project</field>
Florian Bogner's avatar
Florian Bogner committed
122
            <field type="VARCHAR(2) DEFAULT ''">lang</field>
123 124
            <field type="INT(20) DEFAULT NULL">id</field>
            <field type="VARCHAR(100) NULL">permission</field>
125
            <field type="TEXT NULL">value</field>
126

127
            <primary>project,lang,id,permission</primary>
128 129
        </table>

130
        <table name="sessions">
131
            <field type="VARCHAR(255) NOT NULL DEFAULT ''">session_id</field>
132
            <field type="TEXT NULL ">session_value</field>
133 134
            <field type="INT(11) NOT NULL DEFAULT 0">session_time</field>
            <field type="INT(11) NOT NULL DEFAULT 0">session_lifetime</field>
135 136 137

            <primary>session_id</primary>
        </table>
138 139 140

        <table name="updateChecks">
            <field type="INT(11) NOT NULL">id</field>
Florian Bogner's avatar
Florian Bogner committed
141
            <field type="INT(11) NULL">date</field>
142 143
            <field type="TEXT NULL">result</field>
            <field type="TEXT NULL">error</field>
144 145 146 147

            <primary>id</primary>
            <auto_increment>id</auto_increment>
        </table>
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169

        <!-- 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>
        </table>

170
    </global>
171

Henning Leutz's avatar
Henning Leutz committed
172 173
    <projects>
        <table name="paths" no-auto-update="1">
174
            <field type="TEXT NULL">path</field>
Henning Leutz's avatar
Henning Leutz committed
175 176 177
        </table>
    </projects>

178
</database>