mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
7 lines
185 B
SQL
7 lines
185 B
SQL
SELECT
|
|
"document".* ,
|
|
to_json("document"."meta") as meta,
|
|
(SELECT "count"("id") FROM "paragraph" WHERE document_id="document"."id") as "paragraph_count"
|
|
FROM
|
|
"document" "document"
|