local-storage
Installation
SKILL.md
Isar Database
- Use Isar as the primary local database for structured data persistence
- Define collections using
@collectionannotation withIdfield - Place collection definitions in the
data/local/directory of the relevant feature - Run
dart run build_runner build --delete-conflicting-outputsafter modifying collections
Schema Design
- Keep collections focused — one collection per domain entity
- Use
@Indexannotations for fields queried frequently - Use
@enumeratedfor enum fields - Use
LinksandBacklinksfor relationships between collections - NEVER store derived/computed values — compute them in the domain layer