app/migrations/20220203034730_create-apps-...

28 lines
804 B
MySQL
Raw Normal View History

2022-02-03 21:55:10 +00:00
-- 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
);
CREATE TABLE application_category (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
category_name TEXT NOT NULL,
active BOOLEAN NOT NULL DEFAULT 1
);
CREATE TABLE bookmark (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
category_name TEXT NOT NULL,
active BOOLEAN NOT NULL DEFAULT 1,
glyph TEXT, 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
);