CREATE TABLE IF NOT EXISTS upload ( user_id INTEGER NOT NULL, id TEXT PRIMARY KEY, filename TEXT NOT NULL, upload_date TIMESTAMP WITH TIME ZONE DEFAULT NOW(), expiration_date TIMESTAMP WITH TIME ZONE DEFAULT NULL )