app/migrations/20220203034730_create-initi...

37 lines
1.0 KiB
SQL

-- Add migration script here
CREATE TABLE application (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
app_name TEXT NOT NULL,
url TEXT NOT NULL,
description TEXT,
active Boolean NOT NULL DEFAULT 1,
glyph TEXT,
application_category_id INTEGER,
alive Boolean NOT NULL DEFAULT 1,
enable_healthcheck Boolean NOT NULL DEFAULT 0
);
CREATE TABLE application_category (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
category_name TEXT NOT NULL,
glyph TEXT,
active BOOLEAN NOT NULL DEFAULT 1
);
CREATE TABLE bookmark (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
bookmark_name TEXT NOT NULL,
url TEXT NOT NULL,
active BOOLEAN NOT NULL DEFAULT 1,
bookmark_category_id INTEGER
);
CREATE TABLE bookmark_category (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
category_name TEXT NOT NULL,
active BOOLEAN NOT NULL DEFAULT 1,
glyph TEXT
);
CREATE TABLE setting (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
setting_name TEXT NOT NULL,
setting_value TEXT NOT NULL
);