Skip to content

PostgreSQL Schema Definition & Migrations #706

@Yunusabdul38

Description

@Yunusabdul38

PostgreSQL Schema Definition & Migrations

  • Label: backend, infrastructure
  • Description: Define the core relational model for PrediFi.
  • Implementation Hints:
    • Use sqlx migrations.
    • Tables: pools (id, contract_id, state, category, end_time), predictions (id, pool_id, user_address, amount, outcome), stats (pool_id, total_stake).
  • Security: Use Numeric(32, 7) for amounts to maintain precision.
  • Acceptance Criteria: cargo sqlx migrate run successfully creates the schema.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions