🔧 fix(chat): update schema for Better Auth nanoid user IDs

- Change userId columns from uuid to text to support Better Auth's nanoid format
- Update conversations, spaces, space_members, templates, usage_logs schemas
- Fix web API endpoint path from /api to /api/v1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Till-JS 2025-12-02 14:40:02 +01:00
parent 3799fe1b54
commit fb9945c0f7
5 changed files with 8 additions and 8 deletions

View file

@ -58,7 +58,7 @@ async function fetchApi<T>(
}
try {
const response = await fetch(`${API_BASE}/api${endpoint}`, {
const response = await fetch(`${API_BASE}/api/v1${endpoint}`, {
method,
headers: {
'Content-Type': 'application/json',