home / kengdb / noteTb

noteTb

Table actions Table actions
  • Edit table schema

1 row where user_id = 25

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

id ▼ user_id content tags created_at updated_at enable pinned folder_id comment position visibility
345 25 25 # 第一篇笔记 啊撒旦立刻解放 [] 2026-05-20 23:07:22 2026-05-20 23:50:05 F F     0 public

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE "noteTb" (
                    id INTEGER PRIMARY KEY,
                    user_id INTEGER DEFAULT NULL REFERENCES userTb(id),
                    content TEXT NOT NULL DEFAULT '',
                    tags TEXT DEFAULT '[]',
                    created_at TEXT NOT NULL DEFAULT (datetime('now','localtime')),
                    updated_at TEXT NOT NULL DEFAULT (datetime('now','localtime')),
                    enable TEXT DEFAULT 'T',
                    pinned TEXT DEFAULT 'F',
                    folder_id INTEGER DEFAULT NULL REFERENCES folderTb(id),
                    comment TEXT DEFAULT '', position INTEGER DEFAULT 0, visibility TEXT NOT NULL DEFAULT 'private');
CREATE INDEX idx_note_visibility ON noteTb(user_id, visibility, enable);
Powered by Datasette · Queries took 1.2ms