Rename subscription (#192)

* Rename addserver request to createsubscription

* Rename server to subscription

* Show subscriptions in frontend
This commit is contained in:
Jonathan Zernik 2020-08-01 04:52:35 -07:00 committed by GitHub
parent 3a0a322439
commit 874f27df58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 174 additions and 160 deletions

View file

@ -33,10 +33,10 @@ CREATE TABLE IF NOT EXISTS profile (
whitelisted BOOLEAN NOT NULL
);
CREATE TABLE IF NOT EXISTS server (
server_id SERIAL PRIMARY KEY,
CREATE TABLE IF NOT EXISTS subscription (
subscription_id SERIAL PRIMARY KEY,
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
server_name VARCHAR(64),
subscription_name VARCHAR(64),
server_host VARCHAR(256) NOT NULL,
server_port INTEGER NOT NULL,
sharing BOOLEAN NOT NULL,