app.comment_threads
TablaSeguridad a nivel de fila activa
Comment threads on any subject row (Section 7.3: one unified comment system). A subject has its main thread and may have anchored threads, for example on a field or a passage of a document. Readable by whoever can read the subject.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Org of the subject, derived from it on insert; never accepted from the caller.Hace referencia a app.organizations.id |
| subject_table | text | No | Table of the subject.Hace referencia a private.comment_subjects.table_name |
| subject_id | uuid | No | Row the thread is about. |
| anchor | text | Sí | What part of the subject the thread is anchored to, or null for the main thread. |
| resolved_at | timestamp with time zone | Sí | When the thread was resolved. |
| resolved_by | uuid | Sí | Who resolved it, set from the session.Hace referencia a app.people.id |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Sí | Person who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Sí | Person who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| deleted_at | timestamp with time zone | Sí | Soft delete time. A row with deleted_at set is ignored by every access helper. |