Files
pawctioneer-bot/backlog/tasks/task-003 - Create-core-database-models-and-structs.md
2025-08-27 19:12:40 +00:00

850 B

id, title, status, assignee, created_date, labels, dependencies
id title status assignee created_date labels dependencies
task-003 Create core database models and structs To Do
2025-08-27 18:31

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

  • #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