Split messages on newlines as per IRC protocol
[quassel.git] / src / core / SQL / PostgreSQL / 19 / setup_040_network.sql
1 CREATE TABLE network (
2        networkid serial NOT NULL PRIMARY KEY,
3        userid integer NOT NULL REFERENCES quasseluser (userid) ON DELETE CASCADE,
4        networkname varchar(32) NOT NULL,
5        identityid integer REFERENCES identity (identityid) ON DELETE SET NULL,
6        encodingcodec varchar(32) NOT NULL DEFAULT 'ISO-8859-15',
7        decodingcodec varchar(32) NOT NULL DEFAULT 'ISO-8859-15',
8        servercodec varchar(32),
9        userandomserver boolean NOT NULL DEFAULT FALSE,
10        perform TEXT,
11        useautoidentify boolean NOT NULL DEFAULT FALSE,
12        autoidentifyservice varchar(128),
13        autoidentifypassword varchar(128),
14        usesasl boolean NOT NULL DEFAULT FALSE,
15        saslaccount varchar(128),
16        saslpassword varchar(128),
17        useautoreconnect boolean NOT NULL DEFAULT TRUE,
18        autoreconnectinterval integer NOT NULL DEFAULT 0,
19        autoreconnectretries integer NOT NULL DEFAULT 0,
20        unlimitedconnectretries boolean NOT NULL DEFAULT FALSE,
21        rejoinchannels boolean NOT NULL DEFAULT FALSE,
22        connected boolean NOT NULL DEFAULT FALSE,
23        usermode varchar(32), -- user mode to restore
24        awaymessage varchar(256), -- away message to restore (empty if not away)
25        attachperform text, -- perform list for on attach
26        detachperform text, -- perform list for on detach
27        usecustomessagerate boolean NOT NULL DEFAULT FALSE,  -- Custom rate limiting
28        messagerateburstsize INTEGER NOT NULL DEFAULT 5,     -- Maximum messages at once
29        messageratedelay INTEGER NOT NULL DEFAULT 2200,      -- Delay between future messages (milliseconds)
30        unlimitedmessagerate boolean NOT NULL DEFAULT FALSE, -- Disable rate limits
31        UNIQUE (userid, networkname)
32 )