Skip to content

Domain Model

Qilin Xie edited this page Jun 28, 2024 · 1 revision

Domain Model

Entities and Relationships

  • User:

    • id (integer)
    • name (string)
    • email (string)
    • role (string)
    • skills (array of strings)
    • Relationships:
      • Has many Feedback
      • Has many SignUp
  • Nonprofit:

    • id (integer)
    • name (string)
    • mission (string)
    • contactInfo (string)
    • projects (array of strings)
    • Relationships:
      • Has many Event
      • Has many Feedback
  • Event:

    • id (integer)
    • name (string)
    • date (date)
    • time (time)
    • location (string)
    • requiredSkills (array of strings)
    • numberOfVolunteers (integer)
    • Relationships:
      • Belongs to Nonprofit
      • Has many SignUp
  • Feedback:

    • id (integer)
    • userId (integer)
    • nonprofitId (integer)
    • eventId (integer)
    • rating (integer)
    • comments (string)
    • Relationships:
      • Belongs to User
      • Belongs to Nonprofit
  • SignUp:

    • id (integer)
    • userId (integer)
    • eventId (integer)
    • status (string)
    • Relationships:
      • Belongs to User
      • Belongs to Event

Clone this wiki locally