mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 04:31:27 +08:00
- Removed outdated API model and schema files to simplify the structure. - Consolidated API types and schemas for better organization and clarity. - Updated import paths across the codebase to reflect the new structure. - Enhanced documentation in related README files to guide usage of the new API schema organization. |
||
|---|---|---|
| .. | ||
| sqlite-drizzle | ||
| README.md | ||
| sqlite-drizzle.config.ts | ||
THIS DIRECTORY IS NOT FOR RUNTIME USE
v2 Data Refactoring Notice
Before the official release of the alpha version, the database structure may change at any time. To maintain simplicity, the database migration files will be periodically reinitialized, which may cause the application to fail. If this occurs, please delete the cherrystudio.sqlite file located in the user data directory.
- Using
libsqlas thesqlite3driver, anddrizzleas the ORM and database migration tool - Table schemas are defined in
src\main\data\db\schemas migrations/sqlite-drizzlecontains auto-generated migration data. Please DO NOT modify it.- If table structure changes, we should run migrations.
- To generate migrations, use the command
yarn run db:migrations:generate