Skip to content

Conversation

@NewdlDewdl
Copy link

@NewdlDewdl NewdlDewdl commented Nov 7, 2025

Add DiscountProgram Schema

Summary

Adds DiscountProgram schema to support the new discount programs scraper.

Enables storing and serving 205+ student discount programs from UTD Student Government's Comet Discount Program (https://sg.utdallas.edu/discount/).

Related to UTDNebula/api-tools#109

Changes

Modified: api/schema/objects.go (+9 lines)

Added new schema:

type DiscountProgram struct {
    Id       primitive.ObjectID `bson:"_id" json:"_id"`
    Category string             `bson:"category" json:"category"`
    Business string             `bson:"business" json:"business"`
    Address  string             `bson:"address" json:"address"`
    Phone    string             `bson:"phone" json:"phone"`
    Email    string             `bson:"email" json:"email"`
    Website  string             `bson:"website" json:"website"`
    Discount string             `bson:"discount" json:"discount"`
}

Related PRs

Impact

  • ✅ No breaking changes
  • ✅ New schema only, no logic changes
  • ✅ ~205 discount programs, ~500KB data

@NewdlDewdl
Copy link
Author

⚡ Quick Review Request

@mikehquan19 This PR should be merged first before api-tools PR #110.

Why This is Low-Risk:

  • ✅ Only adds a new schema (9 lines)
  • ✅ No breaking changes
  • ✅ No logic modifications
  • ✅ No dependencies

What It Enables:

Once merged, this unblocks api-tools PR #110 which:

  • Scrapes 205+ discount programs
  • Includes full test coverage
  • Currently has failing checks only because this schema doesn't exist yet

This is the foundation for closing issue #109. Ready to merge!

@mikehquan19 mikehquan19 merged commit 3179653 into UTDNebula:develop Nov 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants