Initial sqlite schema.
This commit is contained in:
parent
c2b7c12905
commit
3a7d28030d
7 changed files with 1305 additions and 14 deletions
|
|
@ -69,7 +69,7 @@ captains-log/
|
|||
## Phase 2: Core Database Layer (Days 3-4)
|
||||
|
||||
### Task 2.0: Create Initial Database Migration
|
||||
- [ ] **File**: `backend/migrations/001_create_tasks.sql`
|
||||
- [x] **File**: `backend/migrations/001_create_tasks.sql`
|
||||
- Create tasks table with all required fields
|
||||
- Add proper indexes and constraints
|
||||
- Include created_at, updated_at triggers if needed
|
||||
|
|
@ -77,7 +77,7 @@ captains-log/
|
|||
- **Expected outcome**: `sqlx migrate run` creates table successfully
|
||||
|
||||
### Task 2.1: Define Task Model
|
||||
- [ ] **File**: `backend/src/database/models.rs`
|
||||
- [x] **File**: `backend/src/database/models.rs`
|
||||
- Create Task struct with SQLx derives
|
||||
- Add TaskStatus and Priority enums
|
||||
- Implement proper serialization/deserialization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue