Files
cairnquire/apps/server/internal/database/migrations/000002_documents.up.sql

11 lines
250 B
SQL

CREATE TABLE IF NOT EXISTS documents (
id TEXT PRIMARY KEY,
path TEXT NOT NULL UNIQUE,
current_hash TEXT NOT NULL,
title TEXT NOT NULL,
tags TEXT NOT NULL DEFAULT '',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);