12 lines
373 B
SQL
12 lines
373 B
SQL
CREATE TABLE push_session (
|
|
username text NOT NULL,
|
|
server_host text NOT NULL,
|
|
timestamp bigint NOT NULL,
|
|
service text NOT NULL,
|
|
node text NOT NULL,
|
|
xml text NOT NULL,
|
|
PRIMARY KEY (server_host(191), username(191), timestamp)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX i_push_session_susn ON push_session (server_host(191), username(191), service(191), node(191));
|