This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# Phase 1 – Generic Persistence Model
## Goal
Introduce the generalized persistence backbone in an additive, non-breaking way.
## New schema
The project now contains the `DOC` schema with the following tables:
-`doc_tenant`
-`doc_document`
-`doc_source`
-`doc_content`
-`doc_text_representation`
-`doc_embedding_model`
-`doc_embedding`
-`doc_relation`
## Design choices
### Owner tenant is optional
Public TED notices can remain unowned documents with `visibility = PUBLIC`.
### Visibility is mandatory
Every canonical document must carry `DocumentVisibility`.
### Vectorization is separated already
`doc_embedding` holds vectorization lifecycle and model association outside `doc_document`.
The actual vector payload column exists in the schema, but the runtime still uses the legacy TED