Implemented connection type "tcp" (GCT_TCP), use <hostname>:<port> as "port"
[gnokii.git] / smsd / sms.tables.sql
1 CREATE TABLE "inbox" (
2         "number" character varying(20) NOT NULL,
3         "smsdate" timestamp NOT NULL,
4         "insertdate" timestamp DEFAULT 'now' NOT NULL,
5         "text" character varying(160),
6         "processed" bool DEFAULT 'false',
7         PRIMARY KEY ("number", "smsdate")
8 );
9 CREATE TABLE "outbox" (
10         "id" serial,
11         "number" character varying(20) NOT NULL,
12         "insertdate" timestamp DEFAULT 'now' NOT NULL,
13         "text" text NOT NULL,
14         "hexencode" bool DEFAULT 'false' NOT NULL,
15         "type" character varying(20) DEFAULT 'text' NOT NULL,
16         "fromfile" bool DEFAULT 'false' NOT NULL,
17         "netcode" character varying(10) DEFAULT NULL NULL,
18         "udhpresent" bool DEFAULT 'false' NOT NULL,
19         "longuseudh" bool DEFAULT 'true' NOT NULL,
20         "eightbit" bool DEFAULT 'false' NOT NULL,
21         "smsc" character varying(20) DEFAULT NULL NULL,
22         "processed" bool DEFAULT 'false'
23 );
24 CREATE INDEX outbox_processed ON "outbox" (processed);