You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
-- -----------------------------------------------------
-- Table "subscription"
-- -----------------------------------------------------
DROP TABLE IF EXISTS "subscription";
DROP SEQUENCE IF EXISTS "subscription_id_seq";
CREATE TABLE IF NOT EXISTS "subscription" (
"id" SERIAL,
"device" VARCHAR(40) NOT NULL,
"service_id" integer NOT NULL,
"last_read" integer NOT NULL DEFAULT 0,
"timestamp_created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
"timestamp_checked" TIMESTAMP NULL DEFAULT NULL,
PRIMARY KEY ("id")
);
-- -----------------------------------------------------
-- Table "message"
-- -----------------------------------------------------
DROP TABLE IF EXISTS "message";
DROP SEQUENCE IF EXISTS "message_id_seq";
CREATE TABLE IF NOT EXISTS "message" (
"id" SERIAL,
"service_id" integer NOT NULL,
"text" TEXT NOT NULL,
"title" VARCHAR(255) NULL DEFAULT NULL,
"level" SMALLINT NOT NULL DEFAULT 0,
"link" TEXT NULL,
"timestamp_created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY ("id")
);
-- -----------------------------------------------------
-- Table "service"
-- -----------------------------------------------------
DROP TABLE IF EXISTS "service";
DROP SEQUENCE IF EXISTS "service_id_seq";
CREATE TABLE IF NOT EXISTS "service" (
"id" SERIAL,
"secret" VARCHAR(32) NOT NULL,
"public" VARCHAR(40) NOT NULL,
"name" VARCHAR(255) NOT NULL,
"icon" TEXT NULL,
"timestamp_created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY ("id")
);
-- -----------------------------------------------------
-- Table "gcm"
-- -----------------------------------------------------
DROP TABLE IF EXISTS "gcm";
DROP SEQUENCE IF EXISTS "gcm_id_seq";
CREATE TABLE IF NOT EXISTS "gcm" (
"id" SERIAL,
"uuid" VARCHAR(40) NOT NULL,
"gcmid" TEXT NOT NULL,
"pubkey" TEXT DEFAULT NULL,
"timestamp_created" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
"rsa_pub" BYTEA DEFAULT NULL,
PRIMARY KEY ("id")
);
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
That was easy:
database_uri = 'postgresql://user:pass@host/pushjet_api'
and file:
The text was updated successfully, but these errors were encountered: