Skip to content

Create Project Mongoose Model #70

Description

@grantfox-oss

Description:
Design the Campaign/Project schema.

Tasks:

  • Create src/models/Project.model.js
  • Fields: title, description, category, goalAmount, raisedAmount (default 0), currency (default XLM), owner (ref User), stellarAddress, status (draft | pending | active | rejected | completed), coverImage, documents[], startDate, endDate, createdAt, updatedAt
  • Add index on status and owner

Acceptance Criteria:
Model saves and retrieves campaigns with correct field defaults.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions