Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: update claude.md (#16265)

p0ny0b221ac3d12e
diff --git a/CLAUDE.md b/CLAUDE.md
index 8206c2156f..32ca4f74c3 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -2,6 +2,11 @@
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
+## Project Architecture
+- The database schema is defined in `./backend/migrator/migration/LATEST.sql`
+- The database migration files are in `./backend/migrator/<<version>>/`
+- Files in `./backend/store` are mappings to the database tables.
+
## Build/Test Commands
- Backend: `go build -ldflags "-w -s" -p=16 -o ./.air/bytebase ./backend/bin/server/main.go`
- Start backend: `PG_URL=postgresql://bbdev@localhost/bbdev go run ./backend/bin/server/main.go --port 8080 --data . --debug`
@@ -43,4 +48,7 @@ Always follow these guidelines to avoid common linting errors:
- **Function Receivers**: Don't create unnecessary function receivers; use regular functions if receiver is unused
- **Proper Import Ordering**: Maintain correct grouping and ordering of imports
- **Consistency**: Keep function signatures, naming, and patterns consistent with existing code
-- **Export Rules**: Only export (capitalize) functions and types that need to be used outside the package
\ No newline at end of file
+- **Export Rules**: Only export (capitalize) functions and types that need to be used outside the package
+
+## Individual Preferences
+- @~/.claude/bytebase-instructions.md
\ No newline at end of file