database-setup #3

Merged
GW_MC merged 4 commits from database-setup into master 2026-02-16 11:08:10 +08:00

4 Commits

Author SHA1 Message Date
GW_MC
309f574d45 fix: add 'allow(dead_code)' attribute to multiple SeaORM entity models 2026-02-16 02:55:58 +00:00
GW_MC
032286eef9 Merge branch 'master' into database-setup 2026-02-16 02:28:01 +00:00
GW_MC
692e38e1d2 feat: add database connection and migration functionality
- Updated Cargo.toml to include necessary dependencies for SeaORM and database handling.
- Implemented database connection establishment in `src-tauri/src/db/connection.rs`.
- Created database entities for accounts, exchange rates, goals, transactions, and more using SeaORM.
- Added migration handling in `src-tauri/src/db/migrations.rs`.
- Introduced a database service layer in `src-tauri/src/db/service.rs` for managing database connections and migrations.
- Updated the main library file to include the new database module.
2026-02-14 06:03:58 +00:00
GW_MC
39fcf26ea9 feat: initialize workspace and add migration crate
- Created a new Cargo.toml for the workspace, defining members and dependencies.
- Added a migration crate with its own Cargo.toml and README for CLI usage.
- Implemented migration logic for creating tables: accounts, settings, exchange rates, goals, tags, scheduled transactions, transactions, reconciliations, transfers, transaction tags, goal rules, goal progress, and scheduled instances.
- Added main entry point for the migration CLI.
- Included a Justfile for initializing the environment and managing database migrations.
2026-02-14 06:03:33 +00:00