CREATE TABLE IF NOT EXISTS projects ( id UUID_TEXT PRIMARY KEY NOT NULL UNIQUE, creator_id UUID_TEXT NOT NULL, name TEXT NOT NULL, description TEXT NOT NULL, key TEXT NOT NULL, created TIMESTAMP NOT NULL, updated TIMESTAMP NOT NULL ); CREATE TABLE IF NOT EXISTS documents ( id UUID_TEXT PRIMARY KEY NOT NULL UNIQUE, creator_id UUID_TEXT NOT NULL, project_id UUID_TEXT NOT NULL, title TEXT NOT NULL, content TEXT NOT NULL, created TIMESTAMP NOT NULL, updated TIMESTAMP NOT NULL );