c4e864e1d6bc0cfe6332f3bf5703c531db83e652
[quassel.git] / src / core / SQL / SQLite / 15 / setup_020_network.sql
1 CREATE TABLE network (
2        networkid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
3        userid INTEGER NOT NULL,
4        networkname TEXT NOT NULL,
5        identityid INTEGER NOT NULL DEFAULT 1,
6        encodingcodec TEXT NOT NULL DEFAULT "ISO-8859-15",
7        decodingcodec TEXT NOT NULL DEFAULT "ISO-8859-15",
8        servercodec TEXT NOT NULL DEFAULT "",
9        userandomserver INTEGER NOT NULL DEFAULT 0, -- BOOL
10        perform TEXT,
11        useautoidentify INTEGER NOT NULL DEFAULT 0, -- BOOL
12        autoidentifyservice TEXT,
13        autoidentifypassword TEXT,
14        useautoreconnect INTEGER NOT NULL DEFAULT 0, -- BOOL
15        autoreconnectinterval INTEGER NOT NULL DEFAULT 0,
16        autoreconnectretries INTEGER NOT NULL DEFAULT 0,
17        unlimitedconnectretries INTEGER NOT NULL DEFAULT 0, -- BOOL
18        rejoinchannels INTEGER NOT NULL DEFAULT 0, -- BOOL
19        connected INTEGER NOT NULL DEFAULT 0, -- BOOL
20        usermode TEXT, -- user mode to restore
21        awaymessage TEXT, -- away message to restore (empty if not away)
22        attachperform TEXT, -- perform list for on attach
23        detachperform TEXT, -- perform list for on detach
24        UNIQUE (userid, networkname)
25 )