25 lines
850 B
Markdown
25 lines
850 B
Markdown
---
|
|
id: task-003
|
|
title: Create core database models and structs
|
|
status: To Do
|
|
assignee: []
|
|
created_date: '2025-08-27 18:31'
|
|
labels: []
|
|
dependencies: []
|
|
---
|
|
|
|
## Description
|
|
|
|
Define Rust structs and enums that represent the database schema entities. This includes User, Auction, Bid, ProxyBid, AuctionMedia, and UserSettings models with proper SQLx derive macros.
|
|
|
|
## Acceptance Criteria
|
|
<!-- AC:BEGIN -->
|
|
- [ ] #1 User struct with all fields from users table is defined
|
|
- [ ] #2 Auction struct with AuctionType enum is defined
|
|
- [ ] #3 Bid and ProxyBid structs are defined with proper relationships
|
|
- [ ] #4 AuctionMedia and UserSettings structs are defined
|
|
- [ ] #5 All models have proper SQLx derive macros (FromRow, Type, etc.)
|
|
- [ ] #6 Rust Decimal is used for monetary fields
|
|
- [ ] #7 Chrono DateTime is used for timestamp fields
|
|
<!-- AC:END -->
|