Refactor namespaces to follow new naming convention and add item model classes

This commit is contained in:
2025-02-02 12:39:59 -03:00
parent 4e5addd1d5
commit 0a257199f7
27 changed files with 463 additions and 94 deletions

View File

@@ -1,42 +1,29 @@
# Database Setup and Migration Guide
# Pet Companion
## Prerequisites
- .NET 8.0 SDK
- Entity Framework Core tools
## Todo:
- [ ] Inventory system
- [ ] Skill tree system
- [ ] Explore system
- [ ] Battle system
- [ ] Quest system
- [ ] User login/register system
- [ ] User profile/settings system
- [ ] Front-End: 3D pet model
- [ ] Front-End: 3D pet animations
- [ ] Front-End: 3D pet interactions
- [ ] Front-End: 3D pet environment (depending on the class)
## Install EF Core Tools
```sh
dotnet tool install --global dotnet-ef
```
## Inventory system
- [ ] Inventory UI
- [ ] Inventory database
- [ ] Inventory item database (items, consumables, equipment)
- [ ] Inventory item interactions (use, equip, unequip, drop)
- [ ] Inventory item stacking
- [ ] Inventory item sorting (UI)
### Creating and Updating Database
1. Create initial migration:
dotnet ef migrations add InitialCreate
2. Apply migrations to create/update database:
dotnet ef database update
### Common Commands
1. Create new migration:
dotnet ef migrations add <MigrationName>
2. Remove last migration:
dotnet ef migrations remove
3. Apply migrations to create/update database:
dotnet ef database update
4. Revert last migration:
dotnet ef database update <MigrationName>
5. List all migrations:
dotnet ef migrations list
6. Script migration:
dotnet ef migrations script
7. Remove all migrations:
dotnet ef migrations remove
8. Drop database:
dotnet ef database drop
## Skill tree system
- [ ] Skill tree UI
- [ ] Skill tree database
- [ ] Skill tree interactions (learn, unlearn, upgrade)
- [ ] Skill tree requirements (level, skill points, other skills)
- [ ] Skill tree effects (TBD)