CREATE TABLE users ( id INTEGER PRIMARY KEY , user VARCHAR(20), password VARCHAR(15));

CREATE TABLE sip ( id INTEGER PRIMARY KEY , name VARCHAR(60), user VARCHAR(60), secret VARCHAR(60), registrar VARCHAR(60), proxy VARCHAR(60) );

CREATE TABLE actions ( id INTEGER PRIMARY KEY, action VARCHAR(50));

CREATE TABLE ziel ( id INTEGER PRIMARY KEY, ziel VARCHAR(50));

CREATE TABLE extensions ( id INTEGER PRIMARY KEY, number INTEGER, action VARCHAR(60), "from" VARCHAR(60), to VARCHAR(60));

CREATE TABLE gsm ( id INTEGER PRIMARY KEY, groupname VARCHAR(40));

CREATE TABLE ports ( id INTEGER PRIMARY KEY, port integer, slot INTEGER, groupid integer, pin INTEGER, hidecallerid BOOLEAN);

CREATE TABLE isdn ( id INTEGER PRIMARY KEY, groupname VARCHAR(40));

CREATE TABLE isdn_ports ( id INTEGER PRIMARY KEY, port integer, groupid integer, overlapdial integer);

CREATE TABLE mode ( id INTEGER PRIMARY KEY, mode VARCHAR(20));

CREATE TABLE isdn_hardware ( id INTEGER PRIMARY KEY, port integer, card integer, card_type varchar(6), mode_id integer, 'master' boolean);

