Data Model#
This section documents the database schema and data migration system used in the Open Data Repository.
Contents:
Overview#
The Open Data Repository uses a PostgreSQL database with the following key features:
Drizzle ORM for type-safe database operations
Vector support for embeddings and similarity search
Role-based access control
Team-based content organization
Comprehensive content and annotation tracking
Key Components#
Authentication System - User management - OAuth provider integration - Session handling
Content Management - Digital asset storage - Metadata tracking - Content sets and collections
Annotation System - Multi-source annotations - Quality ratings - Embedding support
Team Organization - Team management - Role-based permissions - Collaborative workflows
For detailed information about specific components, please refer to the relevant sections in the documentation.