Issue: Create Postgres migration for graph schema and identity storage
Summary
Create and run EF Core migrations in sourcelib to establish the complete database schema for the graph database including nodes, edges, types, properties, and graph-based identity storage.
Goals
- Generate EF Core migration for all graph entities
- Include identity/auth tables from graph-based identity work
- Run migration against Postgres database
- Verify schema correctness
Scope
- Create migration for core graph entities:
- NodeTypes, EdgeTypes
- Nodes, Edges
- Properties (with discriminator support)
- Indexes and constraints
- Include graph-based identity storage:
- Users, Roles, Claims (as graph nodes/edges)
- Login providers, Tokens, Refresh tokens
- Run migration against local Postgres instance
- Verify tables, indexes, and relationships
- Test basic CRUD operations
Acceptance Criteria
- Migration files generated in sourcelib project
- Migration runs successfully against Postgres
- All tables created with correct schema
- Indexes and foreign keys properly configured
- Can perform basic CRUD operations on all entities
- Identity data can be stored and retrieved from graph
Dependencies
- Postgres database running locally or in dev environment
- EF Core tools installed
- GraphContext configured for Postgres
Technical Notes
- Use Npgsql provider for Postgres
- Ensure connection string is configured
- Consider seed data for initial node/edge types
- Document migration commands in README
Checklist
References
Issue: Create Postgres migration for graph schema and identity storage
Summary
Create and run EF Core migrations in sourcelib to establish the complete database schema for the graph database including nodes, edges, types, properties, and graph-based identity storage.
Goals
Scope
Acceptance Criteria
Dependencies
Technical Notes
Checklist
References